Skip to content

Commit

Permalink
update: toolchain to 09-2023 and revelant changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mTvare6 committed Dec 8, 2024
1 parent d9df53a commit e125bbd
Show file tree
Hide file tree
Showing 12 changed files with 1,911 additions and 274 deletions.
1,831 changes: 1,580 additions & 251 deletions Cargo.lock

Large diffs are not rendered by default.

19 changes: 17 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,27 @@ version = "0.1.0"
authors = ["mTvare6 <[email protected]>"]
edition = "2021"

[profile.release]
lto = true
codegen-units = 1
strip = true

[dependencies]
actix-web = "3.3.2"
amethyst = { version = "0.15.3", features = ["empty"] }
amethyst = { version = "0.15.3", features = ["vulkan"] }
aseprite = "0.1.3"
ash = "0.33.3"
aws-sdk-sts = "*"
aws-sdk-sso = "*"
aws-runtime = "*"
backtrace = "0.3.61"
bytes = "1.1.0"
cash = "0.1.5"
chashmap = "2.2.2"
chrono = "0.4.19"
chrono-tz = "0.6.0"
clap = "3.0.0-beta.4"
console-subscriber= "*"
cookie = "0.15.1"
cookie_store = "0.15.0"
crossbeam = "0.8.1"
Expand All @@ -39,20 +48,23 @@ gl = "0.14.0"
glam = "0.19.0"
glfw = "0.42.0"
gtk = "0.14.3"
git2 = "*"
handlebars = "4.1.3"
html5ever = "0.25.1"
hyper = "0.14.13"
idna = "0.2.3"
job_scheduler = "1.2.1"
jsonwebtoken = "7.2.0"
# k8s-openapi = { version = "0.15.0" }
# kube-runtime = "*"
legion = "0.4.0"
lettre = "0.10.0-rc.3"
libsqlite3-sys = "0.23.1"
log = "0.4.14"
markup = "0.12.5"
markup5ever_rcdom = "0.1.0"
money = "0.1.0"
mp4parse = "0.12.0"
# mp4parse = "0.12.0"
multipart = "0.18.0"
nix = "0.23.0"
nom = "7.0.0"
Expand All @@ -62,13 +74,15 @@ num-derive = "0.3.3"
num-traits = "0.2.14"
once_cell = "1.8.0"
openssl = "0.10.36"
opentelemetry-otlp= "*"
paste = "1.0.5"
pico-args = "0.4.2"
percent-encoding = "2.1.0"
plist = "1.2.1"
pretty_assertions = "1.0.0"
r_i18n = "1.0.1"
rand = "0.8.4"
ratatui-image = { version = "=1.0.0", features = ["serde"] }
regex = "1.5.4"
reqwest = "0.11.5"
ring = "0.16.20"
Expand All @@ -83,6 +97,7 @@ uuid = "0.8.2"
uwuify = "0.2.2"
serde = "1.0.130"
serde_json = "1.0.68"
sqlx-mysql = "*"
tempfile = "3.2.0"
textwrap = "0.14.2"
time = "0.3.3"
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

🚀 While this depends on more c code than rust(🚀) code to compile, because rust(🚀) is magically **memory safe**, now all c code is memory safe too 🚀

🚀 This project is very minimal, it only requires **1092** crates 🚀
🚀 This project is very minimal, it only requires **1247** crates 🚀

### Building

Expand All @@ -20,31 +20,32 @@ To compile this project you need only one library 🚀:
<div>1. atk 🚀</div>
<div>1. pixbuf 🚀</div>
<div>1. gdk 🚀</div>
<div>1. vulkan(moltenVK on mac) 🚀</div>
</br>
<div>Just 1 lib as you can see the number list along the names 🚀</div>
<div>Just a single library 🚀</div>
</br>

You probably have most of them already, if it says something along the words, you know what to search for now

Then you can just `make` and the compiled executable should be located in `./target/release/hello-world` run it or install it with `make install`.

Due to the lightweightness of rust(🚀), unlike node_modules being fairly large for few dependencies, rust(🚀) manages compile caches efficiently and stores them to storage to save compile times! Just **33G** target folder, the compile time is only around **2 hours and 30 minutes** on my mac on release mode
Due to the lightweightness of rust(🚀), unlike node_modules being fairly large for few dependencies, rust(🚀) manages compile caches efficiently and stores them to storage to save compile times! Just **37G** target folder on couple of compilation(dev+release), the compile time is only around **2 hours and 30 minutes** on my mac air on release mode

![🚀](/ast/before.png)
![🚀](/ast/unclean.png)

A clean build makes it take around _3.8G_
A clean build makes it take around _4.7G_

![🚀](/ast/after.png)
![🚀](/ast/clean.png)

The CPU usage is pretty minimal too (release mode)

![🚀](/ast/cpu_usage.png)
![🚀](/ast/cpu_temp.png)
![🚀](/ast/cpu.png)

![🚀](/ast/lib_benchmark.png)

It is slower than echo but memory safety comes at a cost! We need to be memory chad and blazing pure and lightning based

![🚀](/ast/lib_benchmark.png)

Benchmark by [cypercine](https://github.com/mTvare6/cypercine)

### Installation
Expand Down
Binary file removed ast/after.png
Binary file not shown.
Binary file removed ast/before.png
Binary file not shown.
Binary file added ast/clean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ast/cpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed ast/cpu_temp.png
Binary file not shown.
Binary file removed ast/cpu_usage.png
Binary file not shown.
Binary file added ast/unclean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2022-06-26
nightly-2023-09-26
Loading

0 comments on commit e125bbd

Please sign in to comment.