Skip to content

Commit cbfd497

Browse files
authored
Merge pull request #2089 from CosmWasm/aw/workspace-version
Set the crate version centrally via the workspace
2 parents 32ff9fb + a41f5a3 commit cbfd497

File tree

11 files changed

+20
-17
lines changed

11 files changed

+20
-17
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ exclude = ["contracts"]
66
# due to https://github.com/rust-lang/cargo/issues/9956
77
resolver = "2"
88

9+
[workspace.package]
10+
version = "2.0.1"
11+
912
[workspace.dependencies]
1013
schemars = "0.8.4"
1114
serde = { version = "1.0.192", default-features = false, features = ["derive", "alloc"] }

packages/check/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cosmwasm-check"
3-
version = "2.0.1"
3+
version.workspace = true
44
authors = ["Mauro Lacy <[email protected]>"]
55
edition = "2021"
66
description = "A CLI tool for verifying CosmWasm smart contracts"

packages/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cosmwasm-core"
3-
version = "0.0.1"
3+
version.workspace = true
44
edition = "2021"
55
description = "Components of cosmwasm-std that can be used in no_std environments"
66
repository = "https://github.com/CosmWasm/cosmwasm/tree/main/packages/core"

packages/crypto/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cosmwasm-crypto"
3-
version = "2.0.1"
3+
version.workspace = true
44
authors = ["Mauro Lacy <[email protected]>"]
55
edition = "2021"
66
description = "Crypto bindings for cosmwasm contracts"

packages/derive/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cosmwasm-derive"
3-
version = "2.0.1"
3+
version.workspace = true
44
authors = ["Simon Warta <[email protected]>"]
55
edition = "2021"
66
description = "A package for auto-generated code used for CosmWasm contract development. This is shipped as part of cosmwasm-std. Do not use directly."
@@ -24,4 +24,4 @@ syn = { version = "2", features = ["full"] }
2424
# "What's even more fun, Cargo packages actually can have cyclic dependencies.
2525
# "(a package can have an indirect dev-dependency on itself)"
2626
# https://users.rust-lang.org/t/does-cargo-support-cyclic-dependencies/35666/3
27-
cosmwasm-std = { path = "../std" }
27+
cosmwasm-std = { version = "2.0.1", path = "../std" }

packages/go-gen/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ publish = false
88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

1010
[dependencies]
11-
cosmwasm-std = { path = "../std", version = "2.0.1", features = ["cosmwasm_2_0", "staking", "stargate"] }
12-
cosmwasm-schema = { path = "../schema", version = "2.0.1" }
11+
cosmwasm-std = { version = "2.0.1", path = "../std", features = ["cosmwasm_2_0", "staking", "stargate"] }
12+
cosmwasm-schema = { version = "2.0.1", path = "../schema" }
1313
anyhow = "1"
1414
Inflector = "0.11.4"
1515
indenter = "0.3.3"

packages/schema-derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cosmwasm-schema-derive"
3-
version = "2.0.1"
3+
version.workspace = true
44
authors = ["Tomasz Kurcz <[email protected]>"]
55
edition = "2021"
66
description = "Derive macros for cosmwasm-schema"

packages/schema/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cosmwasm-schema"
3-
version = "2.0.1"
3+
version.workspace = true
44
authors = ["Simon Warta <[email protected]>", "Ethan Frey <[email protected]>"]
55
edition = "2021"
66
description = "A dev-dependency for CosmWasm contracts to generate JSON Schema files."

packages/std/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cosmwasm-std"
3-
version = "2.0.1"
3+
version.workspace = true
44
authors = ["Ethan Frey <[email protected]>"]
55
edition = "2021"
66
description = "Standard library for Wasm based smart contracts on Cosmos blockchains"
@@ -55,7 +55,7 @@ cosmwasm_2_1 = ["cosmwasm_2_0"]
5555

5656
[dependencies]
5757
base64 = "0.22.0"
58-
cosmwasm-derive = { path = "../derive", version = "2.0.1" }
58+
cosmwasm-derive = { version = "2.0.1", path = "../derive" }
5959
derivative = { version = "2", features = ["use_core"] }
6060
forward_ref = "1"
6161
hex = "0.4"
@@ -69,10 +69,10 @@ static_assertions = "1.1.0"
6969

7070
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
7171
bech32 = "0.11.0"
72-
cosmwasm-crypto = { path = "../crypto", version = "2.0.1" }
72+
cosmwasm-crypto = { version = "2.0.1", path = "../crypto" }
7373

7474
[dev-dependencies]
75-
cosmwasm-schema = { path = "../schema" }
75+
cosmwasm-schema = { version = "2.0.1", path = "../schema" }
7676
# The chrono dependency is only used in an example, which Rust compiles for us. If this causes trouble, remove it.
7777
chrono = { version = "0.4", default-features = false, features = ["alloc", "std"] }
7878
crc32fast = "1.3.2"

packages/vm/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cosmwasm-vm"
3-
version = "2.0.1"
3+
version.workspace = true
44
authors = ["Ethan Frey <[email protected]>"]
55
edition = "2021"
66
description = "VM bindings to run cosmwams contracts"
@@ -33,8 +33,8 @@ clru = "0.6.1"
3333
crc32fast = "1.3.2"
3434
bech32 = "0.11.0"
3535
# Uses the path when built locally; uses the given version from crates.io when published
36-
cosmwasm-std = { path = "../std", version = "2.0.1", default-features = false, features = ["std"] }
37-
cosmwasm-crypto = { path = "../crypto", version = "2.0.1" }
36+
cosmwasm-std = { version = "2.0.1", path = "../std", default-features = false, features = ["std"] }
37+
cosmwasm-crypto = { version = "2.0.1", path = "../crypto" }
3838
derivative = "2"
3939
hex = "0.4"
4040
schemars = { workspace = true }

0 commit comments

Comments
 (0)