diff --git a/src/doc/src/reference/config.md b/src/doc/src/reference/config.md index 6a479b81bcd..9ef42f68f4d 100644 --- a/src/doc/src/reference/config.md +++ b/src/doc/src/reference/config.md @@ -126,6 +126,7 @@ inherits = "dev" # Inherits settings from [profile.dev]. opt-level = 0 # Optimization level. debug = true # Include debug info. split-debuginfo = '...' # Debug info splitting behavior. +strip = "none" # Removes symbols or debuginfo. debug-assertions = true # Enables debug assertions. overflow-checks = true # Enables runtime integer overflow checks. lto = false # Sets link-time optimization. @@ -133,7 +134,6 @@ panic = 'unwind' # The panic strategy. incremental = true # Incremental compilation. codegen-units = 16 # Number of code generation units. rpath = false # Sets the rpath linking option. -strip = "none" # Removes symbols or debuginfo. [profile..build-override] # Overrides build-script settings. # Same keys for a normal profile. [profile..package.] # Override profile for a package. @@ -889,6 +889,13 @@ See [debug](profiles.md#debug). See [split-debuginfo](profiles.md#split-debuginfo). +#### `profile..strip` +* Type: string or boolean +* Default: See profile docs. +* Environment: `CARGO_PROFILE__STRIP` + +See [strip](profiles.md#strip). + #### `profile..debug-assertions` * Type: boolean * Default: See profile docs. @@ -926,21 +933,21 @@ See [opt-level](profiles.md#opt-level). #### `profile..panic` * Type: string -* default: See profile docs. +* Default: See profile docs. * Environment: `CARGO_PROFILE__PANIC` See [panic](profiles.md#panic). #### `profile..rpath` * Type: boolean -* default: See profile docs. +* Default: See profile docs. * Environment: `CARGO_PROFILE__RPATH` See [rpath](profiles.md#rpath). #### `profile..strip` * Type: string -* default: See profile docs. +* Default: See profile docs. * Environment: `CARGO_PROFILE__STRIP` See [strip](profiles.md#strip). diff --git a/src/doc/src/reference/profiles.md b/src/doc/src/reference/profiles.md index 15ca8953cbc..165b41d604e 100644 --- a/src/doc/src/reference/profiles.md +++ b/src/doc/src/reference/profiles.md @@ -270,7 +270,7 @@ The default settings for the `dev` profile are: opt-level = 0 debug = true split-debuginfo = '...' # Platform-specific. -strip = false +strip = "none" debug-assertions = true overflow-checks = true lto = false @@ -293,7 +293,7 @@ The default settings for the `release` profile are: opt-level = 3 debug = false split-debuginfo = '...' # Platform-specific. -strip = false +strip = "none" debug-assertions = false overflow-checks = false lto = false