Skip to content

Commit 9a7a04f

Browse files
committed
Auto merge of #12754 - nnethercote:more-strip, r=weihanglo
Add more missing `strip` info to docs. This is a follow-up to #12748.
2 parents 7d6e312 + f506b5a commit 9a7a04f

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/doc/src/reference/config.md

Lines changed: 11 additions & 4 deletions
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.
@@ -926,21 +933,21 @@ See [opt-level](profiles.md#opt-level).
926933

927934
#### `profile.<name>.panic`
928935
* Type: string
929-
* default: See profile docs.
936+
* Default: See profile docs.
930937
* Environment: `CARGO_PROFILE_<name>_PANIC`
931938

932939
See [panic](profiles.md#panic).
933940

934941
#### `profile.<name>.rpath`
935942
* Type: boolean
936-
* default: See profile docs.
943+
* Default: See profile docs.
937944
* Environment: `CARGO_PROFILE_<name>_RPATH`
938945

939946
See [rpath](profiles.md#rpath).
940947

941948
#### `profile.<name>.strip`
942949
* Type: string
943-
* default: See profile docs.
950+
* Default: See profile docs.
944951
* Environment: `CARGO_PROFILE_<name>_STRIP`
945952

946953
See [strip](profiles.md#strip).

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)