-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
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
Strip debug symbols in release #208
Comments
Could this be accomplished in Aside from binary size, what's the issue with including symbols? |
None. But the difference is ~4.2 vs 17.3 Mb. |
"It depends". This should eventually work: cargo-features = ["strip"]
[workspace]
members = [
"taskchampion",
"cli",
"sync-server"
]
[profile.release]
strip = "symbols" At present this requires nightly rustc. With
|
Tried
|
rust-lang/rust#72110 is the tracking issue for stripping debug info etc from This seems like a good thing to aim for in a "1.0" release, by which point this feature will hopefully be in Rust stable |
The option for this seems like it'll be stablized in the next month or so |
https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-159-2022-02-24 |
When building via
cargo build --release
, symbols are still present:Perhaps good ol'
RUSTFLAGS='-C link-arg=-s' cargo build --release
will do as default release step?The text was updated successfully, but these errors were encountered: