Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Try `cargo build --release --no-default-features` to get a much smaller binary (~5-10MB) - Rust statically links dependencies but supports conditional compilation for optional features.


Glancing at the Cargo.toml, the package doesn't define any features anyways. `cargo b --no-default-features` only applies to the packages you're building, not their dependencies -- that would lead to very unpredictable behavior




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: