Skip to content

Commit 78f697f

Browse files
committed
Add more missing strip info to docs.
Also change some `strip = false` mentions to `strip = "false"`. This is a follow-up to #12748.
1 parent 288f424 commit 78f697f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/doc/src/reference/config.md

Lines changed: 8 additions & 1 deletion
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.

src/doc/src/reference/profiles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ The default settings for the `dev` profile are:
270270
opt-level = 0
271271
debug = true
272272
split-debuginfo = '...' # Platform-specific.
273-
strip = false
273+
strip = "none"
274274
debug-assertions = true
275275
overflow-checks = true
276276
lto = false
@@ -293,7 +293,7 @@ The default settings for the `release` profile are:
293293
opt-level = 3
294294
debug = false
295295
split-debuginfo = '...' # Platform-specific.
296-
strip = false
296+
strip = "none"
297297
debug-assertions = false
298298
overflow-checks = false
299299
lto = false

0 commit comments

Comments
 (0)