-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
128 lines (113 loc) · 4.82 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[package]
name = "cw-it"
version = "0.4.0"
authors = ["Pacman <[email protected]>", "Sturdy <[email protected]>"]
edition = "2021"
license = "MPL-2.0"
description = "A crate of utils for integration testing CosmWasm smart contracts"
documentation = "https://docs.rs/cw-it"
repository = "https://github.com/apollodao/cw-it"
readme = "README.md"
exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib", "rlib"]
[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
panic = 'abort'
incremental = false
overflow-checks = true
[features]
default = []
astroport = ["cw20", "dep:astroport", "dep:astroport_v2"]
osmosis = ["proptest", "apollo-utils", "osmosis-test-tube"]
rpc-runner = ["bip32"]
chain-download = ["tokio"]
multi-test = ["bech32", "sha2", "apollo-cw-multi-test", "paste", "regex"]
astroport-multi-test = [
"multi-test",
"astroport",
"astroport-token",
"astroport-native-coin-registry",
"astroport-factory",
"astroport-maker",
"astroport-pair-stable",
"astroport-pair",
"astroport-router",
"astroport-staking",
"astroport-vesting",
"astroport-whitelist",
"astroport-pair-concentrated",
"astroport-incentives",
"astroport-liquidity-manager",
]
osmosis-test-tube = ["dep:osmosis-test-tube"]
[package.metadata.scripts]
optimize = """docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.12.6
"""
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[package.metadata.cargo-machete]
ignored = ["astroport-token", "astroport-native-coin-registry", "astroport-factory", "astroport-maker", "astroport-pair-stable", "astroport-pair", "astroport-router", "astroport-staking", "astroport-vesting", "astroport-whitelist", "astroport-liquidity-manager"]
[dependencies]
bip32 = { version = "0.5", features = ["bip39"], optional = true }
cosmwasm-std = { version = "1.5.5", features = ["stargate"] }
serde = { version = "1.0.152", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.31" }
cosmwasm-schema = "1.2.1"
cosmrs = { version = "0.15", features = ["rpc", "cosmwasm"] }
prost = { version = "0.12", default-features = false, features = [
"prost-derive",
] }
config = { version = "0.14.0", features = ["yaml"] }
anyhow = "1.0.66"
strum = { version = "0.24.1", features = ["derive"] }
osmosis-std = "0.25.0"
test-tube = { version = "0.7.0", features = ["module-wrappers"] }
osmosis-test-tube = { version = "25.0.0", optional = true }
# Astroport deps
astroport_v2 = { package = "astroport", version = "2.9.0", optional = true }
astroport = { version = "5.2.0", optional = true }
cw20 = { version = "0.15", optional = true }
# Astroport contracts for multi-test
astroport-token = { version = "=1.1.1", optional = true, features = ["library"] }
astroport-native-coin-registry = { version = "=1.0.1", optional = true, features = ["library"] }
astroport-factory = { version = "=1.8.0", optional = true, features = ["library"] }
astroport-maker = { version = "=1.5.0", optional = true }
astroport-pair-stable = { version = "=4.0.0", optional = true, features = ["library"] }
astroport-pair = { version = "=2.0.1", optional = true }
astroport-router = { version = "=1.2.1", optional = true }
astroport-staking = { version = "=2.1.0", optional = true }
astroport-vesting = { version = "=1.4.0", optional = true, features = ["library"] }
astroport-whitelist = { version = "=2.0.0", optional = true, features = ["library"] }
astroport-pair-concentrated = { version = "=4.0.2", optional = true, features = ["library"] }
astroport-incentives = { version = "=1.1.0", optional = true, features = ["library"] }
astroport-liquidity-manager = { version = "=1.0.4", optional = true, features = ["library"] }
# Osmosis deps
proptest = { version = "1.0.0", optional = true }
apollo-utils = { version = "0.1.1", optional = true }
regex = { version = "1.7.3", optional = true }
# Cw-multi-test deps
apollo-cw-multi-test = { version = "0.19.0", features = ["stargate"], optional = true }
bech32 = { version = "0.11.0", optional = true }
sha2 = { version = "0.10.8", optional = true }
paste = { version = "1.0.12", optional = true }
# RPC Runner and chain-download deps
tokio = { version = "1.27.0", optional = true }
[dev-dependencies]
test-case = "3.0.0"
cw20-base = { version = "0.15", features = ["library"] }
cw20 = "0.15"