Skip to content

Commit fd5771b

Browse files
committed
Auto merge of #4355 - pornel:docs, r=alexcrichton
Expand profile settings descriptions Flags were described in the format `foobar = true # controls foobar, passes '--foobar' flag`, but this doesn't actually say what `foobar` does. I've expanded the descriptions a little to provide more context.
2 parents 90ebe9c + 3358dd3 commit fd5771b

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

src/doc/manifest.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ license-file = "..."
178178
# currently available are Travis CI, Appveyor, and GitLab latest build status,
179179
# specified using the following parameters:
180180
[badges]
181-
# Travis CI: `repository` is required. `branch` is optional; default is `master`
181+
# Travis CI: `repository` in format "<user>/<project>" is required.
182+
# `branch` is optional; default is `master`
182183
travis-ci = { repository = "...", branch = "master" }
183184
# Appveyor: `repository` is required. `branch` is optional; default is `master`
184185
# `service` is optional; valid values are `github` (default), `bitbucket`, and
@@ -247,14 +248,20 @@ along with the defaults for each profile.
247248
```toml
248249
# The development profile, used for `cargo build`.
249250
[profile.dev]
250-
opt-level = 0 # controls the `--opt-level` the compiler builds with
251-
debug = true # controls whether the compiler passes `-C debuginfo`
252-
# a value of `true` is equivalent to `2`
253-
rpath = false # controls whether the compiler passes `-C rpath`
254-
lto = false # controls `-C lto` for binaries and staticlibs
251+
opt-level = 0 # controls the `--opt-level` the compiler builds with.
252+
# 0-1 is good for debugging. 2 is well-optimized. Max is 3.
253+
debug = true # include debug information (debug symbols). Equivalent to
254+
# `-C debuginfo=2` compiler flag.
255+
rpath = false # controls whether compiler should set loader paths.
256+
# If true, passes `-C rpath` flag to the compiler.
257+
lto = false # Link Time Optimization usually reduces size of binaries
258+
# and static libraries. Increases compilation time.
259+
# If true, passes `-C lto` flag to the compiler.
255260
debug-assertions = true # controls whether debug assertions are enabled
256-
codegen-units = 1 # controls whether the compiler passes `-C codegen-units`
257-
# `codegen-units` is ignored when `lto = true`
261+
# (e.g. debug_assert!() and arithmetic overflow checks)
262+
codegen-units = 1 # if > 1 enables parallel code generation which improves
263+
# compile times, but prevents some optimizations.
264+
# Passes `-C codegen-units`. Ignored when `lto = true`.
258265
panic = 'unwind' # panic strategy (`-C panic=...`), can also be 'abort'
259266

260267
# The release profile, used for `cargo build --release`.

0 commit comments

Comments
 (0)