Skip to content

Commit cec4e77

Browse files
committed
Add more missing strip info to docs.
This is a follow-up to rust-lang#12748.
1 parent 288f424 commit cec4e77

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/doc/src/reference/config.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ inherits = "dev" # Inherits settings from [profile.dev].
126126
opt-level = 0 # Optimization level.
127127
debug = true # Include debug info.
128128
split-debuginfo = '...' # Debug info splitting behavior.
129+
strip = "none" # Removes symbols or debuginfo.
129130
debug-assertions = true # Enables debug assertions.
130131
overflow-checks = true # Enables runtime integer overflow checks.
131132
lto = false # Sets link-time optimization.
132133
panic = 'unwind' # The panic strategy.
133134
incremental = true # Incremental compilation.
134135
codegen-units = 16 # Number of code generation units.
135136
rpath = false # Sets the rpath linking option.
136-
strip = "none" # Removes symbols or debuginfo.
137137
[profile.<name>.build-override] # Overrides build-script settings.
138138
# Same keys for a normal profile.
139139
[profile.<name>.package.<name>] # Override profile for a package.
@@ -889,6 +889,13 @@ See [debug](profiles.md#debug).
889889

890890
See [split-debuginfo](profiles.md#split-debuginfo).
891891

892+
#### `profile.<name>.strip`
893+
* Type: string or boolean
894+
* Default: See profile docs.
895+
* Environment: `CARGO_PROFILE_<name>_STRIP`
896+
897+
See [strip](profiles.md#strip).
898+
892899
#### `profile.<name>.debug-assertions`
893900
* Type: boolean
894901
* Default: See profile docs.

0 commit comments

Comments
 (0)