Skip to content

Commit 2219519

Browse files
committed
Update docs
1 parent d6ab63c commit 2219519

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

MIGRATING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ major releases of `cosmwasm`. Note that you can also view the
3030
want to enable the `std` feature now, as we might move certain existing
3131
functionality to that feature in the future to support no_std environments:
3232

33-
```toml
34-
cosmwasm-std = { version = "2.0.0", default-features = false, features = ["std", ...] }
33+
```diff
34+
-cosmwasm-std = { version = "2.0.0", default-features = false, features = [...] }
35+
+cosmwasm-std = { version = "2.0.0", default-features = false, features = ["std", ...] }
3536
```
3637

3738
- `ContractInfoResponse::new` now takes all fields of the response as

docs/USING_COSMWASM_STD.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ there it becomes impossible to use the contract in chains with lower CosmWasm
7474
versions. If you add `abort`, it becomes impossible for the contract developer
7575
to opt out of the abort feature due to your library. Since this affects the
7676
default features `abort` and `iterator`, you should always disable default
77-
features.
77+
features. However, you should make sure to keep the `std` feature enabled, as we
78+
might move certain existing functionality to that feature in the future.
7879

7980
Also libraries should define a loose version range that allows the contract
8081
developer to control which cosmwasm-std version they want to use in the final
@@ -85,5 +86,6 @@ A typical dependency then looks like this:
8586

8687
```toml
8788
# We really need `stargate` here as this is an IBC related library. `abort` and `iterator` are not needed.
88-
cosmwasm-std = { version = "1.0.1", default-features = false, features = ["stargate"] }
89+
# `std` should always stay enabled.
90+
cosmwasm-std = { version = "1.0.1", default-features = false, features = ["std", "stargate"] }
8991
```

0 commit comments

Comments
 (0)