Skip to content

Commit

Permalink
feat: Expose cosmwasm features
Browse files Browse the repository at this point in the history
  • Loading branch information
jawoznia committed Nov 23, 2023
1 parent d1c69d8 commit 2e42e26
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sylvia-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ categories = ["api-bindings", "wasm"]

[features]
mt = []
cosmwasm_1_2 = []

[lib]
proc-macro = true
Expand Down
36 changes: 32 additions & 4 deletions sylvia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,33 @@ categories = ["api-bindings", "wasm"]
[features]
mt = ["sylvia-derive/mt", "dep:cw-multi-test", "dep:anyhow", "dep:derivative"]
stargate = ["cosmwasm-std/stargate", "cw-multi-test?/stargate"]
staking = ["cosmwasm-std/staking", "cw-multi-test?/staking"]
staking = ["cw-multi-test?/staking"]
iterator = ["cosmwasm-std/iterator", "cw-multi-test?/iterator"]
cosmwasm_1_1 = [
"dep:cw-multi-test",
"cosmwasm-std/cosmwasm_1_1",
"cw-multi-test?/cosmwasm_1_1",
"dep:cw-utils",
]
cosmwasm_1_2 = [
"dep:cw-multi-test",
"cosmwasm-std/cosmwasm_1_2",
"cw-multi-test?/cosmwasm_1_2",
"dep:cw-utils",
"sylvia-derive/cosmwasm_1_2",
]
cosmwasm_1_3 = [
"dep:cw-multi-test",
"cosmwasm-std/cosmwasm_1_3",
"cw-multi-test?/cosmwasm_1_3",
"dep:cw-utils",
]
cosmwasm_1_4 = [
"dep:cw-multi-test",
"cosmwasm-std/cosmwasm_1_4",
"cw-multi-test?/cosmwasm_1_4",
"dep:cw-utils",
]

[dependencies]
sylvia-derive = { workspace = true }
Expand All @@ -27,9 +53,11 @@ konst = "0.3"
cw-multi-test = { version = "0.18.0", optional = true }
anyhow = { version = "1.0", optional = true }
derivative = { version = "2.2.0", optional = true }
cw-utils = { version = "1.0.2", optional = true }

[dev-dependencies]
anyhow = "1.0"
cw-storage-plus = "1.0.1"
cw-multi-test = "0.18"
thiserror = "1.0.38"
cw-storage-plus = "1.2.0"
cw-multi-test = "0.18.0"
thiserror = "1.0.50"
cw-utils = "1.0.2"

0 comments on commit 2e42e26

Please sign in to comment.