Skip to content

Commit e1e2f2d

Browse files
committed
Auto merge of #12352 - epage:meta, r=weihanglo
refactor: Clean up package metadata ### What does this PR try to resolve? Clean up workspace metadata - Reduce noise by allowing fields to be inferred - I left documentation because that is runtime inferred on crates.io which has trade offs - Default package fields at the workspace level Align us on a single edition ### How should we test and review this PR? Mostly relying on CI for this ### Additional information I noticed this and decided to do this while I was considering the idea of setting an MSRV to "latest" by leveraging #12341 and whether that should just be for `cargo` or for all workspace members. I'm leaning towards all workspace members as that is the only thing we test though strictly speaking people might be able to use lower versions; we just wouldn't officially support it.
2 parents 31eda6f + 83a5859 commit e1e2f2d

File tree

21 files changed

+46
-44
lines changed

21 files changed

+46
-44
lines changed

Cargo.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+8-5
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@ exclude = [
1010
"target/", # exclude bench testing
1111
]
1212

13+
[workspace.package]
14+
edition = "2021"
15+
license = "MIT OR Apache-2.0"
16+
1317
[workspace.dependencies]
1418
anyhow = "1.0.47"
1519
base64 = "0.21.0"
1620
bytesize = "1.0"
1721
cargo = { path = "" }
1822
cargo-credential = { version = "0.2.0", path = "credential/cargo-credential" }
19-
cargo-platform = { path = "crates/cargo-platform", version = "0.1.3" }
23+
cargo-platform = { path = "crates/cargo-platform", version = "0.1.4" }
2024
cargo-test-macro = { path = "crates/cargo-test-macro" }
2125
cargo-test-support = { path = "crates/cargo-test-support" }
22-
cargo-util = { version = "0.2.4", path = "crates/cargo-util" }
26+
cargo-util = { version = "0.2.5", path = "crates/cargo-util" }
2327
cargo_metadata = "0.14.0"
2428
clap = "4.2.0"
2529
core-foundation = { version = "0.9.0", features = ["mac_os_10_7_support"] }
@@ -96,12 +100,11 @@ windows-sys = "0.48"
96100
[package]
97101
name = "cargo"
98102
version = "0.74.0"
99-
edition = "2021"
100-
license = "MIT OR Apache-2.0"
103+
edition.workspace = true
104+
license.workspace = true
101105
homepage = "https://crates.io"
102106
repository = "https://github.com/rust-lang/cargo"
103107
documentation = "https://docs.rs/cargo"
104-
readme = "README.md"
105108
description = """
106109
Cargo, a package manager for Rust.
107110
"""

benches/benchsuite/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "benchsuite"
33
version = "0.0.0"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
4+
edition.workspace = true
5+
license.workspace = true
66
homepage = "https://github.com/rust-lang/cargo"
77
repository = "https://github.com/rust-lang/cargo"
88
description = "Benchmarking suite for Cargo."

benches/capture/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "capture"
33
version = "0.1.0"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
4+
edition.workspace = true
5+
license.workspace = true
66
description = "Tool for capturing a real-world workspace for benchmarking."
77
publish = false
88

crates/cargo-platform/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "cargo-platform"
3-
version = "0.1.3"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
3+
version = "0.1.4"
4+
edition.workspace = true
5+
license.workspace = true
66
homepage = "https://github.com/rust-lang/cargo"
77
repository = "https://github.com/rust-lang/cargo"
88
documentation = "https://docs.rs/cargo-platform"

crates/cargo-test-macro/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "cargo-test-macro"
33
version = "0.1.0"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
4+
edition.workspace = true
5+
license.workspace = true
66
homepage = "https://github.com/rust-lang/cargo"
77
repository = "https://github.com/rust-lang/cargo"
88
documentation = "https://github.com/rust-lang/cargo"

crates/cargo-test-support/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "cargo-test-support"
33
version = "0.1.0"
4-
license = "MIT OR Apache-2.0"
5-
edition = "2021"
4+
license.workspace = true
5+
edition.workspace = true
66
publish = false
77

88
[lib]

crates/cargo-util/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "cargo-util"
3-
version = "0.2.4"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
3+
version = "0.2.5"
4+
edition.workspace = true
5+
license.workspace = true
66
homepage = "https://github.com/rust-lang/cargo"
77
repository = "https://github.com/rust-lang/cargo"
88
description = "Miscellaneous support code used by Cargo."

crates/crates-io/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "crates-io"
33
version = "0.37.0"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
4+
edition.workspace = true
5+
license.workspace = true
66
repository = "https://github.com/rust-lang/cargo"
77
description = """
88
Helpers for interacting with crates.io

crates/home/Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ name = "home"
33
version = "0.5.6" # also update `html_root_url` in `src/lib.rs`
44
authors = ["Brian Anderson <[email protected]>"]
55
documentation = "https://docs.rs/home"
6-
edition = "2018"
6+
edition.workspace = true
77
include = [
88
"/src",
99
"/Cargo.toml",
1010
"/CHANGELOG",
1111
"/LICENSE-*",
1212
"/README.md",
1313
]
14-
license = "MIT OR Apache-2.0"
15-
readme = "README.md"
14+
license.workspace = true
1615
repository = "https://github.com/rust-lang/cargo"
1716
description = "Shared definitions of home directories."
1817

crates/mdman/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "mdman"
33
version = "0.0.0"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
4+
edition.workspace = true
5+
license.workspace = true
66
description = "Creates a man page page from markdown."
77
publish = false
88

crates/resolver-tests/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "resolver-tests"
33
version = "0.0.0"
4-
edition = "2018"
4+
edition.workspace = true
55
publish = false
66

77
[dependencies]

crates/semver-check/Cargo.toml

+1-1
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

crates/xtask-build-man/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "xtask-build-man"
33
version = "0.0.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66

77
[dependencies]

crates/xtask-stale-label/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "xtask-stale-label"
33
version = "0.0.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66

77
[dependencies]

crates/xtask-unpublished/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "xtask-unpublished"
33
version = "0.0.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66

77
[dependencies]

credential/cargo-credential-1password/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "cargo-credential-1password"
33
version = "0.2.0"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
4+
edition.workspace = true
5+
license.workspace = true
66
repository = "https://github.com/rust-lang/cargo"
77
description = "A Cargo credential process that stores tokens in a 1password vault."
88

credential/cargo-credential-gnome-secret/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "cargo-credential-gnome-secret"
33
version = "0.2.0"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
4+
edition.workspace = true
5+
license.workspace = true
66
repository = "https://github.com/rust-lang/cargo"
77
description = "A Cargo credential process that stores tokens with GNOME libsecret."
88

credential/cargo-credential-macos-keychain/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "cargo-credential-macos-keychain"
33
version = "0.2.0"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
4+
edition.workspace = true
5+
license.workspace = true
66
repository = "https://github.com/rust-lang/cargo"
77
description = "A Cargo credential process that stores tokens in a macOS keychain."
88

credential/cargo-credential-wincred/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "cargo-credential-wincred"
33
version = "0.2.0"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
4+
edition.workspace = true
5+
license.workspace = true
66
repository = "https://github.com/rust-lang/cargo"
77
description = "A Cargo credential process that stores tokens with Windows Credential Manager."
88

credential/cargo-credential/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "cargo-credential"
33
version = "0.2.0"
4-
edition = "2021"
5-
license = "MIT OR Apache-2.0"
4+
edition.workspace = true
5+
license.workspace = true
66
repository = "https://github.com/rust-lang/cargo"
77
description = "A library to assist writing Cargo credential helpers."
88

0 commit comments

Comments
 (0)