Skip to content

Commit f358359

Browse files
committed
refactor: Provide a workspace-level default edition
1 parent 8b02d49 commit f358359

File tree

18 files changed

+21
-18
lines changed

18 files changed

+21
-18
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ exclude = [
1010
"target/", # exclude bench testing
1111
]
1212

13+
[workspace.package]
14+
edition = "2021"
15+
1316
[workspace.dependencies]
1417
anyhow = "1.0.47"
1518
base64 = "0.21.0"
@@ -96,7 +99,7 @@ windows-sys = "0.48"
9699
[package]
97100
name = "cargo"
98101
version = "0.74.0"
99-
edition = "2021"
102+
edition.workspace = true
100103
license = "MIT OR Apache-2.0"
101104
homepage = "https://crates.io"
102105
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.0.0"
4-
edition = "2021"
4+
edition.workspace = true
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 = "2021"
4+
edition.workspace = true
55
license = "MIT OR Apache-2.0"
66
description = "Tool for capturing a real-world workspace for benchmarking."
77
publish = false

crates/cargo-platform/Cargo.toml

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

crates/cargo-test-macro/Cargo.toml

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

crates/cargo-test-support/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "cargo-test-support"
33
version = "0.1.0"
44
license = "MIT OR Apache-2.0"
5-
edition = "2021"
5+
edition.workspace = true
66
publish = false
77

88
[lib]

crates/cargo-util/Cargo.toml

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

crates/crates-io/Cargo.toml

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

crates/mdman/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mdman"
33
version = "0.0.0"
4-
edition = "2021"
4+
edition.workspace = true
55
license = "MIT OR Apache-2.0"
66
description = "Creates a man page page from markdown."
77
publish = false

crates/semver-check/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "semver-check"
33
version = "0.0.0"
44
authors = ["Eric Huss"]
5-
edition = "2021"
5+
edition.workspace = true
66
publish = false
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

0 commit comments

Comments
 (0)