From af00f6896228806abc1688a1739b8a54e142f65a Mon Sep 17 00:00:00 2001 From: Qinxuan Chen Date: Tue, 21 Feb 2023 19:53:32 +0800 Subject: [PATCH] chore: use workspace inheritance for package info (#832) * chore: use workspace inheritance for package info * add rust-version field into workspace package * .workspace = true --------- Co-authored-by: James Wilson --- Cargo.toml | 11 +++++++++-- cli/Cargo.toml | 11 ++++++----- codegen/Cargo.toml | 11 ++++++----- examples/Cargo.toml | 13 +++++++------ macro/Cargo.toml | 13 +++++++------ metadata/Cargo.toml | 13 +++++++------ subxt/Cargo.toml | 13 +++++++------ testing/integration-tests/Cargo.toml | 14 +++++++------- 8 files changed, 56 insertions(+), 43 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f2d12b9bc3..1adcacd1dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,4 @@ [workspace] - members = [ "cli", "codegen", @@ -12,5 +11,13 @@ members = [ "subxt" ] exclude = ["testing/wasm-tests"] - resolver = "2" + +[workspace.package] +authors = ["Parity Technologies "] +edition = "2021" +rust-version = "1.64.0" +license = "Apache-2.0 OR GPL-3.0" +repository = "https://github.com/paritytech/subxt" +documentation = "https://docs.rs/subxt" +homepage = "https://www.parity.io/" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 6483cf1826..1bf0fd861d 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,14 +1,15 @@ [package] name = "subxt-cli" version = "0.27.1" -authors = ["Parity Technologies "] -edition = "2021" +authors.workspace = true +edition.workspace = true +rust-version.workspace = true publish = true -license = "Apache-2.0 OR GPL-3.0" -repository = "https://github.com/paritytech/subxt" +license.workspace = true +repository.workspace = true documentation = "https://docs.rs/subxt-cli" -homepage = "https://www.parity.io/" +homepage.workspace = true description = "Command line utilities for working with subxt codegen" [[bin]] diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 51d1623a86..80ae7d18b9 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -1,14 +1,15 @@ [package] name = "subxt-codegen" version = "0.27.1" -authors = ["Parity Technologies "] -edition = "2021" +authors.workspace = true +edition.workspace = true +rust-version.workspace = true publish = true -license = "Apache-2.0 OR GPL-3.0" -repository = "https://github.com/paritytech/subxt" +license.workspace = true +repository.workspace = true documentation = "https://docs.rs/subxt-codegen" -homepage = "https://www.parity.io/" +homepage.workspace = true description = "Generate an API for interacting with a substrate node from FRAME metadata" [dependencies] diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 4e54da95b6..807b252ea4 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,14 +1,15 @@ [package] name = "subxt-examples" version = "0.27.1" -authors = ["Parity Technologies "] -edition = "2021" +authors.workspace = true +edition.workspace = true +rust-version.workspace = true publish = false -license = "Apache-2.0 OR GPL-3.0" -repository = "https://github.com/paritytech/subxt" -documentation = "https://docs.rs/subxt" -homepage = "https://www.parity.io/" +license.workspace = true +repository.workspace = true +documentation.workspace = true +homepage.workspace = true description = "Subxt example usage" [dev-dependencies] diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 9cf6fc837c..06adf1074e 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "subxt-macro" version = "0.27.1" -authors = ["Parity Technologies "] -edition = "2021" +authors.workspace = true +edition.workspace = true +rust-version.workspace = true publish = true autotests = false -license = "Apache-2.0 OR GPL-3.0" -repository = "https://github.com/paritytech/subxt" -documentation = "https://docs.rs/subxt" -homepage = "https://www.parity.io/" +license.workspace = true +repository.workspace = true +documentation.workspace = true +homepage.workspace = true description = "Generate types and helpers for interacting with Substrate runtimes." [lib] diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index c2453d8c90..78f27d4647 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "subxt-metadata" version = "0.27.1" -authors = ["Parity Technologies "] -edition = "2021" +authors.workspace = true +edition.workspace = true +rust-version.workspace = true publish = true autotests = false -license = "Apache-2.0 OR GPL-3.0" -repository = "https://github.com/paritytech/subxt" -documentation = "https://docs.rs/subxt" -homepage = "https://www.parity.io/" +license.workspace = true +repository.workspace = true +documentation.workspace = true +homepage.workspace = true description = "Command line utilities for checking metadata compatibility between nodes." [dependencies] diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index f9f0dc9224..fd9ac7761f 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "subxt" version = "0.27.1" -authors = ["Parity Technologies "] -edition = "2021" +authors.workspace = true +edition.workspace = true +rust-version.workspace = true publish = true -license = "Apache-2.0 OR GPL-3.0" +license.workspace = true readme = "../README.md" -repository = "https://github.com/paritytech/subxt" -documentation = "https://docs.rs/subxt" -homepage = "https://www.parity.io/" +repository.workspace = true +documentation.workspace = true +homepage.workspace = true description = "Submit extrinsics (transactions) to a substrate node via RPC" keywords = ["parity", "substrate", "blockchain"] diff --git a/testing/integration-tests/Cargo.toml b/testing/integration-tests/Cargo.toml index 8efb585b36..d14f170d92 100644 --- a/testing/integration-tests/Cargo.toml +++ b/testing/integration-tests/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "integration-tests" version = "0.27.1" -authors = ["Parity Technologies "] -edition = "2021" +authors.workspace = true +edition.workspace = true +rust-version.workspace = true publish = false -license = "Apache-2.0 OR GPL-3.0" -readme = "../README.md" -repository = "https://github.com/paritytech/subxt" -documentation = "https://docs.rs/subxt" -homepage = "https://www.parity.io/" +license.workspace = true +repository.workspace = true +documentation.workspace = true +homepage.workspace = true description = "Subxt integration tests that rely on the Substrate binary" [features]