Skip to content

Commit

Permalink
Workspace metadata (#2015)
Browse files Browse the repository at this point in the history
* `Cargo.toml`: add a `workspace.package` section with shared metadata

* Use `workspace.package` for metadata keys
  • Loading branch information
Twey authored May 12, 2024
1 parent f61cc85 commit 0cbf23c
Show file tree
Hide file tree
Showing 18 changed files with 123 additions and 99 deletions.
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ members = [
exclude = ["examples", "scripts"]
resolver = "2"

[workspace.package]
version = "0.11.0"
authors = ["Linera <[email protected]>"]
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
license = "Apache-2.0"
edition = "2021"

[workspace.dependencies]
heck = "0.4.1"
alloy = { git = "https://github.com/alloy-rs/alloy", rev = "b79db21734cffddc11753fe62ba571565c896f42", default-features = false, features = [ "providers", "rpc-types-eth", "reqwest", "rpc-client", "provider-http", "json-rpc", "signers", "sol-types", "node-bindings", "signer-wallet", "network", "json-abi", "json-rpc", "contract" ] }
Expand Down
13 changes: 7 additions & 6 deletions linera-base/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-base"
version = "0.11.0"
description = "Base definitions, including cryptography, used by the Linera protocol."
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-base/latest/linera_base/"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
test = ["test-strategy", "proptest"]
Expand Down
13 changes: 7 additions & 6 deletions linera-chain/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-chain"
version = "0.11.0"
description = "Persistent data and the corresponding logics used by the Linera protocol for chains of blocks, certificates, and cross-chain messaging."
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-chain/latest/linera_chain/"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
test = ["tokio/macros", "linera-base/test", "linera-execution/test"]
Expand Down
13 changes: 7 additions & 6 deletions linera-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-core"
version = "0.11.0"
description = "The core Linera protocol, including client and server logic, node synchronization, etc."
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-core/latest/linera_core/"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
wasmer = ["linera-execution/wasmer", "linera-storage/wasmer"]
Expand Down
13 changes: 7 additions & 6 deletions linera-execution/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-execution"
version = "0.11.0"
description = "Persistent data and the corresponding logics used by the Linera protocol for runtime and execution of smart contracts / applications."
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-execution/latest/linera_execution/"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
test = ["tokio/macros"]
Expand Down
2 changes: 1 addition & 1 deletion linera-explorer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "linera-explorer"
version = "0.11.0"
version.workspace = true
edition = "2021"
description = "Block explorer for the Linera network"
readme = "README.md"
Expand Down
13 changes: 7 additions & 6 deletions linera-rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-rpc"
version = "0.11.0"
description = "RPC schemas and networking library for the Linera protocol."
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-rpc/latest/linera_rpc/"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
test = [
Expand Down
14 changes: 7 additions & 7 deletions linera-sdk-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "linera-sdk-derive"
version = "0.11.0"
description = "The procedural macros for the crate `linera-sdk`"
authors = ["Linera <[email protected]>"]
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.io"
license = "Apache-2.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[lib]
proc-macro = true
Expand Down
13 changes: 7 additions & 6 deletions linera-sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-sdk"
version = "0.11.0"
description = "Library to support developping Linera applications in Rust."
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-sdk/latest/linera_sdk/"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[package.metadata.cargo-udeps.ignore]
development = ["linera-sdk"]
Expand Down
12 changes: 7 additions & 5 deletions linera-service-graphql-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
[package]
name = "linera-service-graphql-client"
version = "0.11.0"
edition = "2021"
description = "A GraphQL client for Linera node service"
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-service-graphql-client/latest/linera_service_graphql_client/"
license = "Apache-2.0"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
default = ["rocksdb"]
Expand Down
13 changes: 7 additions & 6 deletions linera-service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-service"
version = "0.11.0"
description = "Executable for clients (aka CLI wallets), proxy (aka validator frontend) and servers of the Linera protocol."
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-service/latest/linera_service/"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
default = ["wasmer", "rocksdb"]
Expand Down
15 changes: 8 additions & 7 deletions linera-storage-service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-storage-service"
version = "0.11.0"
description = "RPC shared key value store."
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-storage-service/latest/linera_storage_service/"
license = "Apache-2.0"
edition = "2021"
readme = "README.md"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
default = ["rocksdb"]
Expand Down
13 changes: 7 additions & 6 deletions linera-storage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-storage"
version = "0.11.0"
description = "Storage abstractions for the Linera protocol."
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-storage/latest/linera_storage/"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
test = [
Expand Down
13 changes: 7 additions & 6 deletions linera-version/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-version"
version = "0.11.0"
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-rpc/latest/linera_rpc/"
description = "Crate version management for the Linera protocol"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[dependencies]
async-graphql.workspace = true
Expand Down
13 changes: 7 additions & 6 deletions linera-views-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[package]
name = "linera-views-derive"
version = "0.11.0"
description = "The procedural macros for the crate `linera-views`"
authors = ["Linera <[email protected]>"]
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
metrics = []
Expand Down
15 changes: 8 additions & 7 deletions linera-views/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-views"
version = "0.11.0"
description = "A library mapping complex data structures onto a key-value store, used by the Linera protocol"
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-views/latest/linera_views/"
license = "Apache-2.0"
edition = "2021"
readme = "README.md"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

# Not used, but here to provide the `js` feature to `rand`
metadata.cargo-machete.ignored = ["getrandom"]
Expand Down
13 changes: 7 additions & 6 deletions linera-witty-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-witty-macros"
version = "0.11.0"
description = "Procedural macros for generation of WIT compatible host code from Rust code"
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-witty-macros/latest/linera_witty_macros/"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[lib]
proc-macro = true
Expand Down
13 changes: 7 additions & 6 deletions linera-witty/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "linera-witty"
version = "0.11.0"
description = "Generation of WIT compatible host code from Rust code"
authors = ["Linera <[email protected]>"]
readme = "README.md"
repository = "https://github.com/linera-io/linera-protocol"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-witty/latest/linera_witty/"
license = "Apache-2.0"
edition = "2021"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true

[features]
default = ["macros"]
Expand Down

0 comments on commit 0cbf23c

Please sign in to comment.