zondag 12 februari 2023

How to reduce Rust executable size "hello world"

When you compile the "Hello World" for Rust, the executable is 11 mb in size.

fn main() {
    println!("Hello world");
}

You can decrease the size by using dynamic dlls:

rustc -C prefer-dynamic hello.rs

Geen opmerkingen:

Een reactie posten