# custom flags to pass to all compiler invocations that target $triple
# this value overrides build.rustflags when both are present
rustflags = ["..", ".."]
+# Whether or not to enable incremental compilation
+incremental = true
[target.'cfg(...)']
# Similar for the $triple configuration, but using the `cfg` syntax.
* `RUSTFLAGS` - A space-separated list of custom flags to pass to all compiler
invocations that Cargo performs. In contrast with `cargo rustc`, this is
useful for passing a flag to *all* compiler instances.
+* `CARGO_INCREMENTAL` - If this is set to 1 then Cargo will force incremental
+ compilation to be enabled for the current compilation, and when set to 0 it
+ will force disabling it. If this env var isn't present then cargo's defaults
+ will otherwise be used.
Note that Cargo will also read environment variables for `.cargo/config`
configuration values, as described in [that documentation][config-env]
# compile times, but prevents some optimizations.
# Passes `-C codegen-units`. Ignored when `lto = true`.
panic = 'unwind' # panic strategy (`-C panic=...`), can also be 'abort'
+incremental = true # whether or not incremental compilation is enabled
# The release profile, used for `cargo build --release`.
[profile.release]
debug-assertions = false
codegen-units = 1
panic = 'unwind'
+incremental = false
# The testing profile, used for `cargo test`.
[profile.test]
debug-assertions = true
codegen-units = 1
panic = 'unwind'
+incremental = true
# The benchmarking profile, used for `cargo bench` and `cargo test --release`.
[profile.bench]
debug-assertions = false
codegen-units = 1
panic = 'unwind'
+incremental = false
# The documentation profile, used for `cargo doc`.
[profile.doc]
debug-assertions = true
codegen-units = 1
panic = 'unwind'
+incremental = true
```
### The `[features]` section