Document unstable strip profile feature

This commit is contained in:
Alex Crichton 2020-05-20 07:19:03 -07:00
parent d18e4b36e7
commit 3bb63af320

View File

@ -766,3 +766,22 @@ The following is a description of the JSON structure:
"roots": [0],
}
```
### Profile `strip` option
* Tracking Issue: [rust-lang/rust#72110](https://github.com/rust-lang/rust/issues/72110)
This feature provides a new option in the `[profile]` section to strip either
symbols or debuginfo from a binary. This can be enabled like so:
```toml
cargo-features = ["strip"]
[package]
# ...
[profile.release]
strip = "debuginfo"
```
Other possible values of `strip` are `none` and `symbols`. The default is
`none`.