Skip to content

Commit cf00ee1

Browse files
committed
Auto merge of #8262 - alexcrichton:unstable-docs, r=ehuss
Document unstable `strip` profile feature
2 parents d18e4b3 + 3bb63af commit cf00ee1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/doc/src/reference/unstable.md

+19
Original file line numberDiff line numberDiff line change
@@ -766,3 +766,22 @@ The following is a description of the JSON structure:
766766
"roots": [0],
767767
}
768768
```
769+
770+
### Profile `strip` option
771+
* Tracking Issue: [rust-lang/rust#72110](https://github.com/rust-lang/rust/issues/72110)
772+
773+
This feature provides a new option in the `[profile]` section to strip either
774+
symbols or debuginfo from a binary. This can be enabled like so:
775+
776+
```toml
777+
cargo-features = ["strip"]
778+
779+
[package]
780+
# ...
781+
782+
[profile.release]
783+
strip = "debuginfo"
784+
```
785+
786+
Other possible values of `strip` are `none` and `symbols`. The default is
787+
`none`.

0 commit comments

Comments
 (0)