Skip to content

Commit

Permalink
CW dependency updates (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta authored Jan 19, 2025
2 parents e230ba3 + 5a08339 commit 0f2c2d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/pages/cw-multi-test/features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ The following table summarizes feature flags supported by **`MultiTest`**.
| `cosmwasm_1_4` | Enables `cosmwasm_1_4` feature in _**cosmwasm-std**_ dependency and additionally `cosmwasm_1_3` feature in **`MultiTest`** library. |
| `cosmwasm_2_0` | Enables `cosmwasm_2_0` feature in _**cosmwasm-std**_ dependency and additionally `cosmwasm_1_4` feature in **`MultiTest`** library. |
| `cosmwasm_2_1` | Enables `cosmwasm_2_1` feature in _**cosmwasm-std**_ dependency and additionally `cosmwasm_2_0` feature in **`MultiTest`** library. |
| `cosmwasm_2_2` | Enables `cosmwasm_2_2` feature in _**cosmwasm-std**_ dependency and additionally `cosmwasm_2_1` feature in **`MultiTest`** library. |

## Starting point

Expand All @@ -55,5 +56,5 @@ in **Cargo.toml** file:
cosmwasm-std = "2"

[dev-dependencies]
cw-multi-test = { version = "2", features = ["staking", "stargate", "cosmwasm_2_1"] }
cw-multi-test = { version = "2", features = ["staking", "stargate", "cosmwasm_2_2"] }
```
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ library = []

[dependencies]
cosmwasm-schema = "2"
cosmwasm-std = { version = "2" }
cosmwasm-std = { version = "2", features = ["cosmwasm_2_2"] }
cw-storage-plus = "2"
schemars = "0.8"
serde = "1.0"

[dev-dependencies]
cw-multi-test = { version = "2", features = ["cosmwasm_2_0"] }
cw-multi-test = { version = "2", features = ["cosmwasm_2_2"] }
```

`Cargo.toml` file is a configuration file for a Rust project, in our case for a smart contract
Expand Down Expand Up @@ -97,7 +97,7 @@ library = []
```toml copy showLineNumbers{15} filename="Cargo.toml"
[dependencies]
cosmwasm-schema = "2"
cosmwasm-std = { version = "2" }
cosmwasm-std = { version = "2", features = ["cosmwasm_2_2"] }
cw-storage-plus = "2"
schemars = "0.8"
serde = "1.0"
Expand All @@ -121,7 +121,7 @@ serde = "1.0"

```toml copy showLineNumbers{22} filename="Cargo.toml"
[dev-dependencies]
cw-multi-test = { version = "2", features = ["cosmwasm_2_0"] }
cw-multi-test = { version = "2", features = ["cosmwasm_2_2"] }
```

- **`[dev-dependencies]`** section lists dependencies that are only needed for development and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ library = []

[dependencies]
cosmwasm-schema = "2"
cosmwasm-std = { version = "2" }
cosmwasm-std = { version = "2", features = ["cosmwasm_2_2"] }
cw-storage-plus = "2"
schemars = "0.8"
serde = "1.0"
Expand Down Expand Up @@ -99,7 +99,7 @@ library = []
```toml copy showLineNumbers{15} filename="Cargo.toml"
[dependencies]
cosmwasm-schema = "2"
cosmwasm-std = { version = "2" }
cosmwasm-std = { version = "2", features = ["cosmwasm_2_2"] }
cw-storage-plus = "2"
schemars = "0.8"
serde = "1.0"
Expand Down

0 comments on commit 0f2c2d6

Please sign in to comment.