Skip to content

Commit e7049d3

Browse files
authored
workspace package metadata (#1036)
* chore: remove `Cargo.toml` `documentation` field * chore: use cargo manifest `workspace.package.authors` * chore: use cargo manifest `workspace.package.repository` * chore: use cargo manifest `workspace.package.license` * chore: use cargo manifest `workspace.package.rust-version` * chore: use cargo manifest `workspace.package.edition`: * chore: use cargo manifest `workspace.package.version` * chore: group cargo workspace package metadata usage * chore: use `workspace.edition` for remaining 2021 edition crates
1 parent ef4930c commit e7049d3

File tree

11 files changed

+48
-77
lines changed

11 files changed

+48
-77
lines changed

Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,18 @@ exclude = [
2222

2323
resolver = "2"
2424

25+
[workspace.package]
26+
version = "0.12.6"
27+
authors = [
28+
"Dan Burkert <[email protected]>",
29+
"Lucio Franco <[email protected]>",
30+
"Casper Meijn <[email protected]>",
31+
"Tokio Contributors <[email protected]>",
32+
]
33+
license = "Apache-2.0"
34+
repository = "https://github.com/tokio-rs/prost"
35+
rust-version = "1.70"
36+
edition = "2021"
37+
2538
[profile.bench]
2639
debug = true

conformance/Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
[package]
22
name = "conformance"
33
version = "0.0.0"
4-
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Tokio Contributors <[email protected]>",
7-
]
84
publish = false
9-
edition = "2021"
5+
edition.workspace = true
6+
authors.workspace = true
107

118
[dependencies]
129
bytes = "1"

fuzz/Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
[package]
22
name = "fuzz"
33
version = "0.0.0"
4-
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Tokio Contributors <[email protected]>",
7-
]
84
publish = false
9-
edition = "2021"
5+
edition.workspace = true
6+
authors.workspace = true
107

118
[package.metadata]
129
cargo-fuzz = true

prost-build/Cargo.toml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
[package]
22
name = "prost-build"
3-
version = "0.12.6"
4-
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Lucio Franco <[email protected]>",
7-
"Casper Meijn <[email protected]>",
8-
"Tokio Contributors <[email protected]>",
9-
]
10-
license = "Apache-2.0"
11-
repository = "https://github.com/tokio-rs/prost"
12-
documentation = "https://docs.rs/prost-build"
133
readme = "README.md"
144
description = "Generate Prost annotated Rust types from Protocol Buffers files."
15-
edition = "2021"
16-
rust-version = "1.70"
5+
version.workspace = true
6+
authors.workspace = true
7+
license.workspace = true
8+
repository.workspace = true
9+
edition.workspace = true
10+
rust-version.workspace = true
1711

1812
[features]
1913
default = ["format"]

prost-derive/Cargo.toml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
[package]
22
name = "prost-derive"
3-
version = "0.12.6"
4-
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Lucio Franco <[email protected]>",
7-
"Casper Meijn <[email protected]>",
8-
"Tokio Contributors <[email protected]>",
9-
]
10-
license = "Apache-2.0"
11-
repository = "https://github.com/tokio-rs/prost"
12-
documentation = "https://docs.rs/prost-derive"
133
readme = "README.md"
144
description = "Generate encoding and decoding implementations for Prost annotated types."
15-
edition = "2021"
16-
rust-version = "1.70"
5+
version.workspace = true
6+
authors.workspace = true
7+
license.workspace = true
8+
repository.workspace = true
9+
edition.workspace = true
10+
rust-version.workspace = true
1711

1812
[lib]
1913
proc_macro = true

prost-types/Cargo.toml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
[package]
22
name = "prost-types"
3-
version = "0.12.6"
4-
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Lucio Franco <[email protected]>",
7-
"Casper Meijn <[email protected]>",
8-
"Tokio Contributors <[email protected]>",
9-
]
10-
license = "Apache-2.0"
11-
repository = "https://github.com/tokio-rs/prost"
12-
documentation = "https://docs.rs/prost-types"
133
readme = "README.md"
144
description = "Prost definitions of Protocol Buffers well known types."
15-
edition = "2021"
16-
rust-version = "1.70"
5+
version.workspace = true
6+
authors.workspace = true
7+
license.workspace = true
8+
repository.workspace = true
9+
edition.workspace = true
10+
rust-version.workspace = true
1711

1812
[lib]
1913
doctest = false

prost/Cargo.toml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
[package]
22
name = "prost"
3-
version = "0.12.6"
4-
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Lucio Franco <[email protected]>",
7-
"Casper Meijn <[email protected]>",
8-
"Tokio Contributors <[email protected]>",
9-
]
10-
license = "Apache-2.0"
11-
repository = "https://github.com/tokio-rs/prost"
12-
documentation = "https://docs.rs/prost"
133
readme = "README.md"
144
description = "A Protocol Buffers implementation for the Rust Language."
155
keywords = ["protobuf", "serialization"]
166
categories = ["encoding"]
17-
edition = "2021"
18-
rust-version = "1.70"
7+
version.workspace = true
8+
authors.workspace = true
9+
license.workspace = true
10+
repository.workspace = true
11+
edition.workspace = true
12+
rust-version.workspace = true
1913

2014
[lib]
2115
# https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options

protobuf/Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
[package]
22
name = "protobuf"
33
version = "0.0.0"
4-
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Tokio Contributors <[email protected]>",
7-
]
84
publish = false
9-
edition = "2021"
5+
edition.workspace = true
6+
authors.workspace = true
107

118
[dependencies]
129
prost = { path = "../prost" }

tests-2015/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
[package]
22
name = "tests-2015"
33
version = "0.0.0"
4-
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Tokio Contributors <[email protected]>",
7-
]
84
publish = false
95
edition = "2015"
6+
authors.workspace = true
107

118
build = "../tests/src/build.rs"
129

tests-no-std/Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
[package]
22
name = "tests-no-std"
33
version = "0.0.0"
4-
authors = [
5-
"Dan Burkert <[email protected]>",
6-
"Tokio Contributors <[email protected]>",
7-
]
84
publish = false
9-
edition = "2021"
5+
edition.workspace = true
6+
authors.workspace = true
107

118
build = "../tests/src/build.rs"
129

0 commit comments

Comments
 (0)