We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust 1.59 introduced new feature - creating stripped binaries. Results for hello-world app (target x86_64-unknown-linux-gnu):
x86_64-unknown-linux-gnu
$ cargo build --release Compiling hello-world v0.1.0 (//hello-world) Finished release [optimized] target(s) in 0.94s $ du -h target/release/hello-world 3.6M target/release/hello-world # enable here $ cargo build --release Compiling hello-world v0.1.0 (//hello-world) Finished release [optimized] target(s) in 0.29s $ du -h target/release/hello-world 308K target/release/hello-world
with stripping all symbol information:
[profile.release] strip = true
The text was updated successfully, but these errors were encountered:
TIL. This is nice.
Here are the sizes I got:
strip = "debuginfo"
strip = "symbols"
strip = true
I think strip = "debuginfo" is a good middle ground. Some symbols might be needed for debugging crashes, etc.
Sorry, something went wrong.
Do you want to open a PR for this?
Sure
Successfully merging a pull request may close this issue.
Rust 1.59 introduced new feature - creating stripped binaries. Results for hello-world app (target
x86_64-unknown-linux-gnu
):with stripping all symbol information:
The text was updated successfully, but these errors were encountered: