From f30bffa1960fecd77222361680165dec9d32651b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wo=C5=BAniak?= Date: Wed, 3 Apr 2024 12:28:05 +0200 Subject: [PATCH] chore: Unify feature names in examples (#175) --- examples/contracts/cw1-subkeys/Cargo.toml | 2 +- examples/contracts/cw1-whitelist/Cargo.toml | 3 +-- examples/contracts/cw1-whitelist/src/lib.rs | 2 +- examples/contracts/cw20-base/Cargo.toml | 2 +- examples/contracts/entry-points-overriding/Cargo.toml | 2 +- examples/contracts/generic_contract/Cargo.toml | 2 +- examples/contracts/generic_iface_on_contract/Cargo.toml | 2 +- examples/contracts/generics_forwarded/Cargo.toml | 2 +- 8 files changed, 8 insertions(+), 9 deletions(-) diff --git a/examples/contracts/cw1-subkeys/Cargo.toml b/examples/contracts/cw1-subkeys/Cargo.toml index 2124d343..47725735 100644 --- a/examples/contracts/cw1-subkeys/Cargo.toml +++ b/examples/contracts/cw1-subkeys/Cargo.toml @@ -8,7 +8,7 @@ crate-type = ["cdylib", "rlib"] [features] library = [] -tests = ["library", "cw-multi-test", "anyhow"] +mt = ["library", "cw-multi-test", "anyhow"] [dependencies] anyhow = { workspace = true, optional = true } diff --git a/examples/contracts/cw1-whitelist/Cargo.toml b/examples/contracts/cw1-whitelist/Cargo.toml index b804ba5f..474d63d8 100644 --- a/examples/contracts/cw1-whitelist/Cargo.toml +++ b/examples/contracts/cw1-whitelist/Cargo.toml @@ -13,8 +13,7 @@ crate-type = ["cdylib", "rlib"] [features] library = [] -tests = ["library", "cw-multi-test", "anyhow"] -mt = ["sylvia/mt", "library"] +mt = ["sylvia/mt", "library", "cw-multi-test", "anyhow"] [dependencies] cosmwasm-std = { workspace = true, features = ["staking"] } diff --git a/examples/contracts/cw1-whitelist/src/lib.rs b/examples/contracts/cw1-whitelist/src/lib.rs index 52af57a5..3a3e3c18 100644 --- a/examples/contracts/cw1-whitelist/src/lib.rs +++ b/examples/contracts/cw1-whitelist/src/lib.rs @@ -1,6 +1,6 @@ pub mod contract; mod cw1; pub mod error; -#[cfg(any(test, feature = "tests"))] +#[cfg(any(test, feature = "mt"))] pub mod multitest; pub mod whitelist; diff --git a/examples/contracts/cw20-base/Cargo.toml b/examples/contracts/cw20-base/Cargo.toml index b68664d4..45cd6084 100644 --- a/examples/contracts/cw20-base/Cargo.toml +++ b/examples/contracts/cw20-base/Cargo.toml @@ -13,7 +13,7 @@ crate-type = ["cdylib", "rlib"] [features] library = [] -tests = ["library", "cw-multi-test", "anyhow"] +mt = ["library", "cw-multi-test", "anyhow"] [dependencies] anyhow = { workspace = true, optional = true } diff --git a/examples/contracts/entry-points-overriding/Cargo.toml b/examples/contracts/entry-points-overriding/Cargo.toml index 46cc3dda..5cc75460 100644 --- a/examples/contracts/entry-points-overriding/Cargo.toml +++ b/examples/contracts/entry-points-overriding/Cargo.toml @@ -13,7 +13,7 @@ crate-type = ["cdylib", "rlib"] [features] library = [] -tests = ["library", "cw-multi-test", "anyhow"] +mt = ["library", "cw-multi-test", "anyhow"] [dependencies] anyhow = { workspace = true, optional = true } diff --git a/examples/contracts/generic_contract/Cargo.toml b/examples/contracts/generic_contract/Cargo.toml index d361af09..780df461 100644 --- a/examples/contracts/generic_contract/Cargo.toml +++ b/examples/contracts/generic_contract/Cargo.toml @@ -13,7 +13,7 @@ crate-type = ["cdylib", "rlib"] [features] library = [] -tests = ["library", "cw-multi-test", "anyhow"] +mt = ["library", "cw-multi-test", "anyhow"] [dependencies] anyhow = { workspace = true, optional = true } diff --git a/examples/contracts/generic_iface_on_contract/Cargo.toml b/examples/contracts/generic_iface_on_contract/Cargo.toml index 05b8791a..9476c2ec 100644 --- a/examples/contracts/generic_iface_on_contract/Cargo.toml +++ b/examples/contracts/generic_iface_on_contract/Cargo.toml @@ -13,7 +13,7 @@ crate-type = ["cdylib", "rlib"] [features] library = [] -tests = ["library", "cw-multi-test", "anyhow"] +mt = ["library", "cw-multi-test", "anyhow"] [dependencies] anyhow = { workspace = true, optional = true } diff --git a/examples/contracts/generics_forwarded/Cargo.toml b/examples/contracts/generics_forwarded/Cargo.toml index fa453cb0..f50a1615 100644 --- a/examples/contracts/generics_forwarded/Cargo.toml +++ b/examples/contracts/generics_forwarded/Cargo.toml @@ -13,7 +13,7 @@ crate-type = ["cdylib", "rlib"] [features] library = [] -tests = ["library", "cw-multi-test", "anyhow"] +mt = ["library", "cw-multi-test", "anyhow"] [dependencies] anyhow = { workspace = true, optional = true }