[package]
name = "cosmwasm-std"
version.workspace = true
authors = ["Ethan Frey <ethanfrey@users.noreply.github.com>"]
edition = "2021"
description = "Standard library for Wasm based smart contracts on Cosmos blockchains"
repository = "https://github.com/CosmWasm/cosmwasm/tree/main/packages/std"
license = "Apache-2.0"
readme = "README.md"
[package.metadata.docs.rs]
features = ["abort", "cosmwasm_2_2", "staking", "stargate"]
[features]
default = ["iterator", "std"]
abort = []
std = []
iterator = []
staking = []
stargate = []
cosmwasm_1_1 = []
cosmwasm_1_2 = ["cosmwasm_1_1"]
cosmwasm_1_3 = ["cosmwasm_1_2"]
cosmwasm_1_4 = ["cosmwasm_1_3"]
cosmwasm_2_0 = ["cosmwasm_1_4"]
cosmwasm_2_1 = ["cosmwasm_2_0"]
cosmwasm_2_2 = ["cosmwasm_2_1"]
[dependencies]
base64 = "0.22.0"
bnum = "0.11.0"
cosmwasm-core = { version = "2.2.2", path = "../core" }
cosmwasm-derive = { version = "2.2.2", path = "../derive" }
derive_more = { version = "1.0.0-beta.6", default-features = false, features = [
"debug",
] }
hex = "0.4"
schemars = { workspace = true }
sha2 = "0.10.3"
serde = { workspace = true, features = ["std"] }
serde-json-wasm = { version = "1.0.1", default-features = false, features = [
"std",
] }
static_assertions = "1.1.0"
thiserror = "1.0.26"
rmp-serde = "1.3.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
bech32 = "0.11.0"
cosmwasm-crypto = { version = "2.2.2", path = "../crypto" }
rand_core = { version = "0.6.4", features = ["getrandom"] }
[dev-dependencies]
cosmwasm-core = { path = "../core", version = "2.2.2" }
cosmwasm-schema = { version = "2.2.2", path = "../schema" }
chrono = { version = "0.4", default-features = false, features = [
"alloc",
"std",
] }
crc32fast = "1.3.2"
hex-literal = "0.4.1"
paste = "1.0.15"
proptest = { version = "1.5.0", default-features = false, features = [
"attr-macro",
"std",
] }
serde_json = "1.0.81"