Make the default behaviour of `cargo build` match the documentation
authorXimin Luo <infinity0@pwned.gg>
Mon, 5 Feb 2018 16:04:11 +0000 (17:04 +0100)
committerXimin Luo <infinity0@pwned.gg>
Tue, 6 Feb 2018 00:35:20 +0000 (01:35 +0100)
commit3fc0715d33ccea567526242d2247576930db4a7c
tree381867504d95a14aebeef590e516beefb0dfccbc
parentee78456afbf56b27128955c90329552977ef0b24
Make the default behaviour of `cargo build` match the documentation

cargo build --help says:

    --all-targets                Build all targets (lib and bin targets by default)

but the old default behaviour was actually doing --all-targets. This meant that
--avoid-dev-deps was only effectively if one gave --lib --bins explicitly. With
this commit, `cargo build --avoid-dev-deps` with no other flags, will build lib
and bins and avoid installing dev-dependencies.
src/cargo/ops/cargo_compile.rs