Skip to content

Commit 1c13bc6

Browse files
authored
Document nightly cargo strip=symbols
1 parent 186a55a commit 1c13bc6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ To remove this, run [`strip`](https://linux.die.net/man/1/strip) on the `.elf` f
4040
$ strip target/release/min-sized-rust
4141
```
4242

43+
Available starting `1.45.0-nightly (2020-05-28)`,
44+
[Cargo has `strip` functionality built in](https://github.com/rust-lang/cargo/pull/8246):
45+
46+
![Minimum Rust: Nightly](https://img.shields.io/badge/Minimum%20Rust%20Version-nightly%201.45.0-orange.svg)
47+
48+
```bash
49+
$ cargo +nightly build -Z strip=symbols
50+
```
51+
4352
# Optimize For Size
4453

4554
![Minimum Rust: 1.28](https://img.shields.io/badge/Minimum%20Rust%20Version-1.28-brightgreen.svg)

0 commit comments

Comments
 (0)