[package]
name = "cosmrs"
version = "0.5.1"
authors = ["Tony Arcieri <tony@iqlusion.io>"]
license = "Apache-2.0"
repository = "https://github.com/cosmos/cosmos-rust/tree/main/cosmrs"
description = "Transaction builder and signer for Cosmos-based blockchains"
readme = "README.md"
categories = ["cryptography", "cryptography::cryptocurrencies", "encoding"]
keywords = ["blockchain", "cosmos", "tendermint", "transaction"]
edition = "2021"
rust-version = "1.56"

[dependencies]
cosmos-sdk-proto = { version = "0.10", default-features = false, path = "../cosmos-sdk-proto" }
ecdsa = { version = "0.13", features = ["std"] }
eyre = "0.6"
k256 = { version = "0.10", features = ["ecdsa", "sha256"] }
prost = "0.9"
prost-types = "0.9"
rand_core = { version = "0.6", features = ["std"] }
serde = { version = "1", features = ["serde_derive"] }
serde_json = "1"
subtle-encoding = { version = "0.5", features = ["bech32-preview"] }
tendermint = { version = "=0.23.5", features = ["secp256k1"] }
thiserror = "1"

# optional dependencies
bip32 = { version = "0.3", optional = true }
tendermint-rpc = { version = "=0.23.5", optional = true, features = ["http-client"] }
tokio = { version = "1", optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }

[dev-dependencies]
hex-literal = "0.3"

[features]
default = ["bip32"]
dev = ["rpc", "tokio"]
rpc = ["tendermint-rpc"]
cosmwasm = ["cosmos-sdk-proto/cosmwasm"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
