Upgrade Cargo to the 2021 edition

This didn't actually result in any code changes yet, for now this simply
flips the edition flag for all of our crates and documentation.
This commit is contained in:
Alex Crichton
2021-10-22 10:24:49 -07:00
parent 50a0af4bfd
commit cabe1cca0a
19 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
[package]
name = "cargo"
version = "0.59.0"
edition = "2018"
edition = "2021"
authors = ["Yehuda Katz <wycats@gmail.com>",
"Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]
+1 -1
View File
@@ -1,7 +1,7 @@
[package]
name = "benchsuite"
version = "0.1.0"
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/rust-lang/cargo"
repository = "https://github.com/rust-lang/cargo"
+1 -1
View File
@@ -1,7 +1,7 @@
[package]
name = "capture"
version = "0.1.0"
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Tool for capturing a real-world workspace for benchmarking."
+1 -1
View File
@@ -2,7 +2,7 @@
name = "cargo-platform"
version = "0.1.2"
authors = ["The Cargo Project Developers"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/rust-lang/cargo"
repository = "https://github.com/rust-lang/cargo"
+1 -1
View File
@@ -2,7 +2,7 @@
name = "cargo-test-macro"
version = "0.1.0"
authors = ["Jethro Beekman <jethro@fortanix.com>"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/rust-lang/cargo"
repository = "https://github.com/rust-lang/cargo"
+1 -1
View File
@@ -3,7 +3,7 @@ name = "cargo-test-support"
version = "0.1.0"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
[lib]
doctest = false
+1 -1
View File
@@ -2,7 +2,7 @@
name = "cargo-util"
version = "0.1.1"
authors = ["The Cargo Project Developers"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/rust-lang/cargo"
repository = "https://github.com/rust-lang/cargo"
+1 -1
View File
@@ -1,7 +1,7 @@
[package]
name = "crates-io"
version = "0.33.0"
edition = "2018"
edition = "2021"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/cargo"
@@ -2,7 +2,7 @@
name = "cargo-credential-1password"
version = "0.1.0"
authors = ["The Rust Project Developers"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/cargo"
description = "A Cargo credential process that stores tokens in a 1password vault."
@@ -2,7 +2,7 @@
name = "cargo-credential-gnome-secret"
version = "0.1.0"
authors = ["The Rust Project Developers"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/cargo"
description = "A Cargo credential process that stores tokens with GNOME libsecret."
@@ -2,7 +2,7 @@
name = "cargo-credential-macos-keychain"
version = "0.1.0"
authors = ["The Rust Project Developers"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/cargo"
description = "A Cargo credential process that stores tokens in a macOS keychain."
@@ -2,7 +2,7 @@
name = "cargo-credential-wincred"
version = "0.1.0"
authors = ["The Rust Project Developers"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/cargo"
description = "A Cargo credential process that stores tokens with Windows Credential Manager."
@@ -2,7 +2,7 @@
name = "cargo-credential"
version = "0.1.0"
authors = ["The Rust Project Developers"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/cargo"
description = "A library to assist writing Cargo credential helpers."
+1 -1
View File
@@ -2,7 +2,7 @@
name = "mdman"
version = "0.1.0"
authors = ["Eric Huss"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Creates a man page page from markdown."
+1 -1
View File
@@ -2,7 +2,7 @@
name = "semver-check"
version = "0.1.0"
authors = ["Eric Huss"]
edition = "2018"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+1 -1
View File
@@ -33,7 +33,7 @@ This is all we need to get started. First, lets check out `Cargo.toml`:
[package]
name = "hello_world"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
```
+1 -1
View File
@@ -29,7 +29,7 @@ Lets take a closer look at `Cargo.toml`:
[package]
name = "hello_world"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
+1 -1
View File
@@ -35,7 +35,7 @@ crates:
[package]
name = "hello_world"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
time = "0.1.12"
@@ -147,7 +147,7 @@ Pretty similar to before! Next, the manifest:
[package]
name = "hello-world-from-c"
version = "0.1.0"
edition = "2018"
edition = "2021"
```
For now were not going to use any build dependencies, so lets take a look at
@@ -297,7 +297,7 @@ with `pkg-config` installed. Let's start by setting up the manifest:
[package]
name = "libz-sys"
version = "0.1.0"
edition = "2018"
edition = "2021"
links = "z"
[build-dependencies]
@@ -384,7 +384,7 @@ Here's an example:
[package]
name = "zuser"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
libz-sys = "1.0.25"