4 ms·
If you read the article you would know that this is just about changing defaults. You already could achieve this by editing your project's Cargo.toml. As is doc
by shzhdbi09gv8ioi 3y ago
If you read the article you would know that this is just about changing defaults. You already could achieve this by editing your project's Cargo.toml. As is documented and discussed in several places over the years (google "shrink rust binary size").
The `strip` was added to rust nightly in 2020.
1: https://github.com/johnthagen/min-sized-rust https://github.com/johnthagen/min-sized-rust
2: https://kerkour.com/optimize-rust-binary-size https://kerkour.com/optimize-rust-binary-size
3: https://rustrepo.com/repo/johnthagen-min-sized-rust https://rustrepo.com/repo/johnthagen-min-sized-rust
4: https://sing.stanford.edu/site/publications/rust-lctes22.pdf https://sing.stanford.edu/site/publications/rust-lctes22.pdf
5: https://arusahni.net/blog/2020/03/optimizing-rust-binary-size.html https://arusahni.net/blog/2020/03/optimizing-rust-binary-siz...