@@ -31,13 +31,6 @@ $ cargo build --release
31
31
32
32
![ OS: * nix] ( https://img.shields.io/badge/OS-*nix-brightgreen.svg )
33
33
34
- > Note: Looking for a tool to help automated ` strip ` ing? Check out
35
- [ ` cargo-strip ` ] ( https://github.com/guedou/cargo-strip ) or follow
36
- [ Cargo #3483 ] ( https://github.com/rust-lang/cargo/issues/3483 ) .
37
-
38
- > See also: [ ` sstrip ` ] ( https://github.com/BR903/ELFkickers ) a small utility that removes a few
39
- bytes from an executable that strip leaves behind. ` sstrip ` should be run after ` strip ` .
40
-
41
34
By default on Linux and macOS, symbol information is included in the compiled ` .elf ` file. This
42
35
information is not needed to properly execute the binary.
43
36
To remove this, run [ ` strip ` ] ( https://linux.die.net/man/1/strip ) on the ` .elf ` file:
@@ -46,16 +39,13 @@ To remove this, run [`strip`](https://linux.die.net/man/1/strip) on the `.elf` f
46
39
$ strip target/release/min-sized-rust
47
40
```
48
41
49
- Available starting ` 1.45.0-nightly (2020-05-28) ` ,
50
- [ Cargo has ` strip ` functionality built in] ( https://doc.rust-lang.org/cargo/reference/unstable.html#profile-strip-option ) :
42
+ [ Cargo has ` strip ` functionality built in] ( https://doc.rust-lang.org/cargo/reference/profiles.html#strip ) :
51
43
52
- ![ Minimum Rust: Nightly ] ( https://img.shields.io/badge/Minimum%20Rust%20Version-nightly%201.45.0-orange .svg )
44
+ ![ Minimum Rust: 1.59 ] ( https://img.shields.io/badge/Minimum%20Rust%20Version-1.59-brightgreen .svg )
53
45
54
46
Modify ` Cargo.toml ` in this way:
55
47
56
48
``` toml
57
- cargo-features = [" strip" ]
58
-
59
49
[profile .release ]
60
50
strip = true # Automatically strip symbols from the binary.
61
51
```
0 commit comments