@@ -178,7 +178,8 @@ license-file = "..."
178
178
# currently available are Travis CI, Appveyor, and GitLab latest build status,
179
179
# specified using the following parameters:
180
180
[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`
182
183
travis-ci = { repository = " ..." , branch = " master" }
183
184
# Appveyor: `repository` is required. `branch` is optional; default is `master`
184
185
# `service` is optional; valid values are `github` (default), `bitbucket`, and
@@ -247,14 +248,20 @@ along with the defaults for each profile.
247
248
``` toml
248
249
# The development profile, used for `cargo build`.
249
250
[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.
255
260
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`.
258
265
panic = ' unwind' # panic strategy (`-C panic=...`), can also be 'abort'
259
266
260
267
# The release profile, used for `cargo build --release`.
0 commit comments