Cargo Strip Save

Strip Rust binaries created with cargo

Project README

cargo-strip

crates.io badge CI Twitter Follow

As of Rust 1.59, the cargo command is now able to strip a binary. This can be enabled in your Cargo.toml in the following way:

[package]
# ...

[profile.release]
strip="debuginfo"

A cargo subcommand that reduces the size of Rust binaries using the strip command.

Installation & Usage

Run the following command:

cargo install --force cargo-strip

Simply strip your binary with:

cargo strip

When cross-compiling, the --target could be used to strip the binary, such as:

cargo strip --target armv7-unknown-linux-gnueabihf
Open Source Agenda is not affiliated with "Cargo Strip" Project. README Source: guedou/cargo-strip
Stars
89
Open Issues
4
Last Commit
2 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating