Это видео недоступно.
Сожалеем об этом.
Mimimalist Multithreaded HTTP Web Server 510kb in Rust | Rust Language
HTML-код
- Опубликовано: 11 июл 2024
- How to create the web server plus extra routes and compile down to an optimized binary in Rust. A nice follow on from the example in the Rust Book.
🟩 doc.rust-lang....
* I didn't use a thread pool btw *
#rustprogramming #learningrust
Latest Rust Version : Version 1.79.0 as of 12 July 2024
I've added html for default route - see GitHub repo :
----------------------------------------------------------------------------------
🟩 github.com/RGG...
Make the binary even smaller with UPX :
./upx --best --lzma ~/Documents/rust/wb/target/release/wb
File size Ratio Format Name
-------------------- ------ ----------- -----------
509736 - 189456 37.17% linux/amd64 wb
Just 189kb !
upx.github.io/
nnethercote.gi...
Debug vs release executable size is mind blowing!
A very good one but why you not using rocket?
Is this just for having a understanding or what ??
Yes, exactly !that.
As I learn Rust I want to to learn as much about how to build things "from scratch" to get a better understanding 👍