Skip to content

Commit b35b55a

Browse files
authored
Merge pull request #1568 from CosmWasm/enable-cosmwasm_1_1
Let feature cosmwasm_1_2 enable cosmwasm_1_1 in cosmwasm-std
2 parents f8c4f77 + f1c2ef6 commit b35b55a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,15 +362,15 @@ jobs:
362362
- run:
363363
name: Build library for native target (all features)
364364
working_directory: ~/project/packages/std
365-
command: cargo build --locked --features abort,iterator,staking,stargate,cosmwasm_1_1,cosmwasm_1_2
365+
command: cargo build --locked --features abort,iterator,staking,stargate,cosmwasm_1_2
366366
- run:
367367
name: Build library for wasm target (all features)
368368
working_directory: ~/project/packages/std
369-
command: cargo wasm --locked --features abort,iterator,staking,stargate,cosmwasm_1_1,cosmwasm_1_2
369+
command: cargo wasm --locked --features abort,iterator,staking,stargate,cosmwasm_1_2
370370
- run:
371371
name: Run unit tests (all features)
372372
working_directory: ~/project/packages/std
373-
command: cargo test --locked --features abort,iterator,staking,stargate,cosmwasm_1_1,cosmwasm_1_2
373+
command: cargo test --locked --features abort,iterator,staking,stargate,cosmwasm_1_2
374374
- save_cache:
375375
paths:
376376
- /usr/local/cargo/registry
@@ -913,7 +913,7 @@ jobs:
913913
- run:
914914
name: Clippy linting on std (all feature flags)
915915
working_directory: ~/project/packages/std
916-
command: cargo clippy --all-targets --features abort,iterator,staking,stargate,cosmwasm_1_1,cosmwasm_1_2 -- -D warnings
916+
command: cargo clippy --all-targets --features abort,iterator,staking,stargate,cosmwasm_1_2 -- -D warnings
917917
- run:
918918
name: Clippy linting on storage (no feature flags)
919919
working_directory: ~/project/packages/storage
@@ -990,7 +990,7 @@ jobs:
990990
CRYPTO=" cargo tarpaulin --skip-clean --out Xml --output-dir reports/crypto --packages cosmwasm-crypto"
991991
DERIVE=" cargo tarpaulin --skip-clean --out Xml --output-dir reports/derive --packages cosmwasm-derive"
992992
SCHEMA=" cargo tarpaulin --skip-clean --out Xml --output-dir reports/schema --packages cosmwasm-schema"
993-
STD=" cargo tarpaulin --skip-clean --out Xml --output-dir reports/std --packages cosmwasm-std --features abort,iterator,staking,stargate,cosmwasm_1_1,cosmwasm_1_2"
993+
STD=" cargo tarpaulin --skip-clean --out Xml --output-dir reports/std --packages cosmwasm-std --features abort,iterator,staking,stargate,cosmwasm_1_2"
994994
STORAGE="cargo tarpaulin --skip-clean --out Xml --output-dir reports/storage --packages cosmwasm-storage"
995995
docker run --security-opt seccomp=unconfined -v "${PWD}:/volume" xd009642/tarpaulin:0.21.0 \
996996
sh -c "$CRYPTO && $DERIVE && $SCHEMA && $STD && $STORAGE"

devtools/check_workspace.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cargo fmt
1010
# default, min, all
1111
cargo check
1212
cargo check --no-default-features
13-
cargo check --features abort,iterator,staking,stargate,cosmwasm_1_1,cosmwasm_1_2
13+
cargo check --features abort,iterator,staking,stargate,cosmwasm_1_2
1414
cargo wasm-debug
1515
cargo wasm-debug --features iterator,staking,stargate
1616
cargo clippy --all-targets --features iterator,staking,stargate -- -D warnings

devtools/test_workspace.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ command -v shellcheck >/dev/null && shellcheck "$0"
44

55
cargo fmt
66
(cd packages/crypto && cargo test)
7-
(cd packages/std && cargo test --features iterator,cosmwasm_1_1,cosmwasm_1_2)
7+
(cd packages/std && cargo test --features iterator,cosmwasm_1_2)
88
(cd packages/storage && cargo test --features iterator)
99
(cd packages/schema && cargo test)
1010
(cd packages/schema-derive && cargo test)

packages/std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ibc3 = ["stargate"]
3838
cosmwasm_1_1 = []
3939
# This feature makes `GovMsg::VoteWeighted` available for the contract to call, but requires
4040
# the host blockchain to run CosmWasm `1.2.0` or higher.
41-
cosmwasm_1_2 = []
41+
cosmwasm_1_2 = ["cosmwasm_1_1"]
4242

4343
[dependencies]
4444
base64 = "0.13.0"

0 commit comments

Comments
 (0)