Skip to content

Stripping binaries #1258

Answered by Emilgardis
ofek asked this question in Q&A
May 11, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Cross can't do this, but cargo can!

You can specify in your Cargo.toml to strip

[profile.release]
panic = "abort"
strip = true

or pass -C strip to rustc

see https://doc.rust-lang.org/cargo/reference/profiles.html#strip

I remember vaguely it not working for every target though as the target might not have strip setup for it

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ofek
Comment options

Answer selected by ofek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants