Skip to content

Commit

Permalink
workspace package metadata (#1036)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
gibbz00 committed May 31, 2024
1 parent ef4930c commit e7049d3
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 77 deletions.
13 changes: 13 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,18 @@ exclude = [

resolver = "2"

[workspace.package]
version = "0.12.6"
authors = [
"Dan Burkert <[email protected]>",
"Lucio Franco <[email protected]>",
"Casper Meijn <[email protected]>",
"Tokio Contributors <[email protected]>",
]
license = "Apache-2.0"
repository = "https://github.com/tokio-rs/prost"
rust-version = "1.70"
edition = "2021"

[profile.bench]
debug = true
7 changes: 2 additions & 5 deletions conformance/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[package]
name = "conformance"
version = "0.0.0"
authors = [
"Dan Burkert <[email protected]>",
"Tokio Contributors <[email protected]>",
]
publish = false
edition = "2021"
edition.workspace = true
authors.workspace = true

[dependencies]
bytes = "1"
Expand Down
7 changes: 2 additions & 5 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[package]
name = "fuzz"
version = "0.0.0"
authors = [
"Dan Burkert <[email protected]>",
"Tokio Contributors <[email protected]>",
]
publish = false
edition = "2021"
edition.workspace = true
authors.workspace = true

[package.metadata]
cargo-fuzz = true
Expand Down
18 changes: 6 additions & 12 deletions prost-build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
[package]
name = "prost-build"
version = "0.12.6"
authors = [
"Dan Burkert <[email protected]>",
"Lucio Franco <[email protected]>",
"Casper Meijn <[email protected]>",
"Tokio Contributors <[email protected]>",
]
license = "Apache-2.0"
repository = "https://github.com/tokio-rs/prost"
documentation = "https://docs.rs/prost-build"
readme = "README.md"
description = "Generate Prost annotated Rust types from Protocol Buffers files."
edition = "2021"
rust-version = "1.70"
version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
edition.workspace = true
rust-version.workspace = true

[features]
default = ["format"]
Expand Down
18 changes: 6 additions & 12 deletions prost-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
[package]
name = "prost-derive"
version = "0.12.6"
authors = [
"Dan Burkert <[email protected]>",
"Lucio Franco <[email protected]>",
"Casper Meijn <[email protected]>",
"Tokio Contributors <[email protected]>",
]
license = "Apache-2.0"
repository = "https://github.com/tokio-rs/prost"
documentation = "https://docs.rs/prost-derive"
readme = "README.md"
description = "Generate encoding and decoding implementations for Prost annotated types."
edition = "2021"
rust-version = "1.70"
version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
edition.workspace = true
rust-version.workspace = true

[lib]
proc_macro = true
Expand Down
18 changes: 6 additions & 12 deletions prost-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
[package]
name = "prost-types"
version = "0.12.6"
authors = [
"Dan Burkert <[email protected]>",
"Lucio Franco <[email protected]>",
"Casper Meijn <[email protected]>",
"Tokio Contributors <[email protected]>",
]
license = "Apache-2.0"
repository = "https://github.com/tokio-rs/prost"
documentation = "https://docs.rs/prost-types"
readme = "README.md"
description = "Prost definitions of Protocol Buffers well known types."
edition = "2021"
rust-version = "1.70"
version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
edition.workspace = true
rust-version.workspace = true

[lib]
doctest = false
Expand Down
18 changes: 6 additions & 12 deletions prost/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
[package]
name = "prost"
version = "0.12.6"
authors = [
"Dan Burkert <[email protected]>",
"Lucio Franco <[email protected]>",
"Casper Meijn <[email protected]>",
"Tokio Contributors <[email protected]>",
]
license = "Apache-2.0"
repository = "https://github.com/tokio-rs/prost"
documentation = "https://docs.rs/prost"
readme = "README.md"
description = "A Protocol Buffers implementation for the Rust Language."
keywords = ["protobuf", "serialization"]
categories = ["encoding"]
edition = "2021"
rust-version = "1.70"
version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
edition.workspace = true
rust-version.workspace = true

[lib]
# https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options
Expand Down
7 changes: 2 additions & 5 deletions protobuf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[package]
name = "protobuf"
version = "0.0.0"
authors = [
"Dan Burkert <[email protected]>",
"Tokio Contributors <[email protected]>",
]
publish = false
edition = "2021"
edition.workspace = true
authors.workspace = true

[dependencies]
prost = { path = "../prost" }
Expand Down
5 changes: 1 addition & 4 deletions tests-2015/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[package]
name = "tests-2015"
version = "0.0.0"
authors = [
"Dan Burkert <[email protected]>",
"Tokio Contributors <[email protected]>",
]
publish = false
edition = "2015"
authors.workspace = true

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

Expand Down
7 changes: 2 additions & 5 deletions tests-no-std/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[package]
name = "tests-no-std"
version = "0.0.0"
authors = [
"Dan Burkert <[email protected]>",
"Tokio Contributors <[email protected]>",
]
publish = false
edition = "2021"
edition.workspace = true
authors.workspace = true

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

Expand Down
7 changes: 2 additions & 5 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[package]
name = "tests"
version = "0.0.0"
authors = [
"Dan Burkert <[email protected]>",
"Tokio Contributors <[email protected]>",
]
publish = false
edition = "2021"
edition.workspace = true
authors.workspace = true

build = "src/build.rs"

Expand Down

0 comments on commit e7049d3

Please sign in to comment.