Skip to content

Commit

Permalink
chore: use workspace inheritance for package info (#832)
Browse files Browse the repository at this point in the history
* chore: use workspace inheritance for package info

* add rust-version field into workspace package

* .workspace = true

---------

Co-authored-by: James Wilson <[email protected]>
  • Loading branch information
koushiro and jsdw authored Feb 21, 2023
1 parent 7a2df22 commit af00f68
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 43 deletions.
11 changes: 9 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[workspace]

members = [
"cli",
"codegen",
Expand All @@ -12,5 +11,13 @@ members = [
"subxt"
]
exclude = ["testing/wasm-tests"]

resolver = "2"

[workspace.package]
authors = ["Parity Technologies <[email protected]>"]
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/"
11 changes: 6 additions & 5 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "subxt-cli"
version = "0.27.1"
authors = ["Parity Technologies <[email protected]>"]
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]]
Expand Down
11 changes: 6 additions & 5 deletions codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "subxt-codegen"
version = "0.27.1"
authors = ["Parity Technologies <[email protected]>"]
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]
Expand Down
13 changes: 7 additions & 6 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "subxt-examples"
version = "0.27.1"
authors = ["Parity Technologies <[email protected]>"]
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]
Expand Down
13 changes: 7 additions & 6 deletions macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
[package]
name = "subxt-macro"
version = "0.27.1"
authors = ["Parity Technologies <[email protected]>"]
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]
Expand Down
13 changes: 7 additions & 6 deletions metadata/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
[package]
name = "subxt-metadata"
version = "0.27.1"
authors = ["Parity Technologies <[email protected]>"]
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]
Expand Down
13 changes: 7 additions & 6 deletions subxt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
[package]
name = "subxt"
version = "0.27.1"
authors = ["Parity Technologies <[email protected]>"]
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"]

Expand Down
14 changes: 7 additions & 7 deletions testing/integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "integration-tests"
version = "0.27.1"
authors = ["Parity Technologies <[email protected]>"]
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]
Expand Down

0 comments on commit af00f68

Please sign in to comment.