]> git.proxmox.com Git - cargo.git/commit - src/doc/src/reference/manifest.md
Stabilize `edition` key and add `cargo new --edition`
authorAlex Crichton <alex@alexcrichton.com>
Wed, 5 Sep 2018 22:29:22 +0000 (15:29 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 6 Sep 2018 18:28:10 +0000 (11:28 -0700)
commit3d0290398ad4e9c20609ada5155a0f872569a36f
tree3dac411185b1fdce650f1f05f580720c9eed8fff
parent065e3ef98d3edbce5c9e66d927d9ac9944cc6639
Stabilize `edition` key and add `cargo new --edition`

This commit stabilizes the `edition` key in `Cargo.toml`, both in the
`[package]` section and inside subtargets. Additionally the `cargo new` and
`cargo init` subcommands have been enhanced with a `--edition` flag to allow
explicitly specifying the edition to be generated.

This commit does not yet change the default edition that's generated.

Closes #5980
13 files changed:
src/bin/cargo/command_prelude.rs
src/cargo/core/compiler/compilation.rs
src/cargo/core/features.rs
src/cargo/ops/cargo_new.rs
src/doc/src/reference/manifest.md
src/doc/src/reference/unstable.md
tests/testsuite/bench.rs
tests/testsuite/build.rs
tests/testsuite/edition.rs
tests/testsuite/fix.rs
tests/testsuite/new.rs
tests/testsuite/package.rs
tests/testsuite/run.rs