GeistHaus
log in · sign up

GitHub - johnthagen/min-sized-rust: 🦀 How to minimize Rust binary size 📦 https://github.com/johnthagen/min-sized-rust

github.com

🦀 How to minimize Rust binary size 📦 https://github.com/johnthagen/min-sized-rust - johnthagen/min-sized-rust

14 pages link to this URL
HN Security - Learning Rust for fun and backdoo-rs -

First installment of the Offensive Rust series that introduces learning resources and walks through the implementation of a red teaming tool.

2 inbound links article en ToolsArticles windowsred teamingrustmetasploitmeterpretertactical exploitation
Why does rust binary take so much space?

About half of the bin size is the statically linked std, which does not get the dead code treatment from lto. You can workaround this by following the instructions here: GitHub - johnthagen/min-sized-rust: 🦀 How to minimize Rust binary size 📦 Before and after results: $ cargo build --release && strip target/release/morr && ls -l target/release/morr Finished release [optimized] target(s) in 0.10s -rwxr-xr-x 1 jay staff 286628 Apr 17 00:59 target/release/morr* $ xargo build --target x86_...

1 inbound link website en