Это видео недоступно.
Сожалеем об этом.

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...

Комментарии • 3

  • @monkey_see_monkey_do
    @monkey_see_monkey_do Месяц назад +1

    Debug vs release executable size is mind blowing!

  • @amankansal5529
    @amankansal5529 Месяц назад +2

    A very good one but why you not using rocket?
    Is this just for having a understanding or what ??

    • @learning_rust
      @learning_rust  Месяц назад

      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 👍