Enable incremental by default
authorAlex Crichton <alex@alexcrichton.com>
Wed, 13 Dec 2017 22:08:16 +0000 (14:08 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 21 Dec 2017 18:56:51 +0000 (10:56 -0800)
commit45cc30bc7379ae13b079157b660de9d084de7a9e
tree73b65c8c5366631733743d0794c368d190dce116
parentfac7e2559a5ceebcf3e710e2076f9ca3df9ab465
Enable incremental by default

This commit enables incremental compilation by default in Cargo for all
dev-related profiles (aka anything without `--release` or `bench`. A
number of new configuration options were also added to tweak how
incremental compilation is exposed and/or used:

* A `profile.dev.incremental` field is added to `Cargo.toml` to disable
  it on a per-project basis (in case of bugs).
* A `build.incremental` field was added in `.cargo/config` to disable
  globally (or enable if we flip this default back off).

Otherwise `CARGO_INCREMENTAL` can still be used to configure one
particular compilation. The global `build.incremental` configuration
cannot currently be used to enable it for the release profile.
.travis.yml
src/cargo/core/manifest.rs
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/util/toml/mod.rs
src/doc/config.md
src/doc/environment-variables.md
src/doc/manifest.md
tests/build.rs
tests/cargotest/lib.rs