Skip to content

Commit dc6a1d5

Browse files
committed
Auto merge of #10000 - alexcrichton:upgrade-edition, r=Eh2406
Upgrade Cargo to the 2021 edition While I was poking around in the manifests I also went ahead and removed the `authors` entries since at least the one for Cargo itself is quite outdated and Cargo otherwise doesn't use these any more.
2 parents e165bc8 + cab1e35 commit dc6a1d5

File tree

22 files changed

+29
-37
lines changed

22 files changed

+29
-37
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ jobs:
6868

6969
# Deny warnings on CI to avoid warnings getting into the codebase.
7070
- run: cargo test --features 'deny-warnings'
71-
- run: cargo test --features 'deny-warnings' -p cargo-test-support
71+
- run: cargo test --features 'deny-warnings' --manifest-path crates/cargo-test-support/Cargo.toml
72+
env:
73+
CARGO_TARGET_DIR: target
7274
- run: cargo test -p cargo-platform
7375
- run: cargo test -p cargo-util
7476
- run: cargo test --manifest-path crates/mdman/Cargo.toml
@@ -113,6 +115,7 @@ jobs:
113115
steps:
114116
- uses: actions/checkout@v2
115117
- run: rustup update nightly && rustup default nightly
118+
- run: rustup update stable
116119
- run: rustup component add rust-docs
117120
- run: ci/validate-man.sh
118121
# This requires rustfmt, use stable.

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
[package]
22
name = "cargo"
33
version = "0.59.0"
4-
edition = "2018"
5-
authors = ["Yehuda Katz <wycats@gmail.com>",
6-
"Carl Lerche <me@carllerche.com>",
7-
"Alex Crichton <alex@alexcrichton.com>"]
4+
edition = "2021"
85
license = "MIT OR Apache-2.0"
96
homepage = "https://crates.io"
107
repository = "https://github.com/rust-lang/cargo"

benches/benchsuite/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "benchsuite"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
homepage = "https://github.com/rust-lang/cargo"
77
repository = "https://github.com/rust-lang/cargo"

benches/capture/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "capture"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
description = "Tool for capturing a real-world workspace for benchmarking."
77

crates/cargo-platform/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[package]
22
name = "cargo-platform"
33
version = "0.1.2"
4-
authors = ["The Cargo Project Developers"]
5-
edition = "2018"
4+
edition = "2021"
65
license = "MIT OR Apache-2.0"
76
homepage = "https://github.com/rust-lang/cargo"
87
repository = "https://github.com/rust-lang/cargo"

crates/cargo-test-macro/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[package]
22
name = "cargo-test-macro"
33
version = "0.1.0"
4-
authors = ["Jethro Beekman <jethro@fortanix.com>"]
5-
edition = "2018"
4+
edition = "2021"
65
license = "MIT OR Apache-2.0"
76
homepage = "https://github.com/rust-lang/cargo"
87
repository = "https://github.com/rust-lang/cargo"

crates/cargo-test-support/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
[package]
22
name = "cargo-test-support"
33
version = "0.1.0"
4-
authors = ["Alex Crichton <alex@alexcrichton.com>"]
54
license = "MIT OR Apache-2.0"
6-
edition = "2018"
5+
edition = "2021"
76

87
[lib]
98
doctest = false
@@ -24,3 +23,6 @@ tar = { version = "0.4.18", default-features = false }
2423
termcolor = "1.1.2"
2524
toml = "0.5.7"
2625
url = "2.2.2"
26+
27+
[features]
28+
deny-warnings = []

crates/cargo-test-support/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#![allow(clippy::all)]
66
#![warn(clippy::needless_borrow)]
77
#![warn(clippy::redundant_clone)]
8+
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
89

910
use std::env;
1011
use std::ffi::OsStr;

crates/cargo-util/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[package]
22
name = "cargo-util"
33
version = "0.1.1"
4-
authors = ["The Cargo Project Developers"]
5-
edition = "2018"
4+
edition = "2021"
65
license = "MIT OR Apache-2.0"
76
homepage = "https://github.com/rust-lang/cargo"
87
repository = "https://github.com/rust-lang/cargo"

crates/crates-io/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[package]
22
name = "crates-io"
33
version = "0.33.0"
4-
edition = "2018"
5-
authors = ["Alex Crichton <alex@alexcrichton.com>"]
4+
edition = "2021"
65
license = "MIT OR Apache-2.0"
76
repository = "https://github.com/rust-lang/cargo"
87
description = """

0 commit comments

Comments
 (0)