]> git.proxmox.com Git - cargo.git/commit
Auto merge of #5984 - alexcrichton:stabilize-edition, r=ehuss
authorbors <bors@rust-lang.org>
Thu, 6 Sep 2018 22:17:24 +0000 (22:17 +0000)
committerbors <bors@rust-lang.org>
Thu, 6 Sep 2018 22:17:24 +0000 (22:17 +0000)
commit56ee6204de6da133e1c0e5064dfb24065dc41ff7
tree40d4b58c377b0c3230fe2d4f8e993571b1f77109
parenta39c2a3028e31e40f3bcc1c853a089aa1cbe0c5c
parent3d0290398ad4e9c20609ada5155a0f872569a36f
Auto merge of #5984 - alexcrichton:stabilize-edition, r=ehuss

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
src/cargo/core/compiler/compilation.rs
tests/testsuite/fix.rs
tests/testsuite/package.rs