mirror of
https://github.com/rust-lang/cargo.git
synced 2026-05-06 08:36:38 -04:00
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:
+1
-1
@@ -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,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,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."
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,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."
|
||||
|
||||
@@ -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."
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ This is all we need to get started. First, let’s check out `Cargo.toml`:
|
||||
[package]
|
||||
name = "hello_world"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ Let’s take a closer look at `Cargo.toml`:
|
||||
[package]
|
||||
name = "hello_world"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
||||
|
||||
@@ -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 we’re not going to use any build dependencies, so let’s 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"
|
||||
|
||||
Reference in New Issue
Block a user