3748ab77a1
* Statically link openssl * Fix wasm client build * Enable openssl for nyxd-client feature
100 lines
3.7 KiB
TOML
100 lines
3.7 KiB
TOML
[package]
|
|
name = "nym-validator-client"
|
|
version = "0.1.0"
|
|
authors = ["Jędrzej Stuczyński <andrew@nymtech.net>"]
|
|
edition = "2021"
|
|
rust-version = "1.56"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
base64 = "0.13"
|
|
colored = "2.0"
|
|
|
|
nym-coconut-dkg-common = { path = "../../cosmwasm-smart-contracts/coconut-dkg" }
|
|
nym-contracts-common = { path = "../../cosmwasm-smart-contracts/contracts-common" }
|
|
nym-mixnet-contract-common = { path = "../../cosmwasm-smart-contracts/mixnet-contract" }
|
|
nym-vesting-contract-common = { path = "../../cosmwasm-smart-contracts/vesting-contract" }
|
|
nym-coconut-bandwidth-contract-common = { path = "../../cosmwasm-smart-contracts/coconut-bandwidth-contract" }
|
|
nym-multisig-contract-common = { path = "../../cosmwasm-smart-contracts/multisig-contract" }
|
|
nym-name-service-common = { path = "../../cosmwasm-smart-contracts/name-service" }
|
|
nym-group-contract-common = { path = "../../cosmwasm-smart-contracts/group-contract" }
|
|
nym-service-provider-directory-common = { path = "../../cosmwasm-smart-contracts/service-provider-directory" }
|
|
nym-vesting-contract = { path = "../../../contracts/vesting" }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
thiserror = "1"
|
|
log = { workspace = true }
|
|
url = { version = "2.2", features = ["serde"] }
|
|
tokio = { version = "1.24.1", features = ["sync", "time"] }
|
|
futures = "0.3"
|
|
openssl = { version = "0.10", features = ["vendored"], optional = true }
|
|
|
|
nym-coconut-interface = { path = "../../coconut-interface" }
|
|
nym-network-defaults = { path = "../../network-defaults" }
|
|
nym-api-requests = { path = "../../../nym-api/nym-api-requests" }
|
|
|
|
# required for nyxd-client
|
|
# at some point it might be possible to make it wasm-compatible
|
|
# perhaps after https://github.com/cosmos/cosmos-rust/pull/97 is resolved (and tendermint-rs is updated)
|
|
async-trait = { workspace = true, optional = true }
|
|
bip39 = { workspace = true, features = ["rand"], optional = true }
|
|
nym-config = { path = "../../config", optional = true }
|
|
cosmrs = { git = "https://github.com/neacsu/cosmos-rust", branch = "neacsu/feegrant_support", features = ["rpc", "bip32", "cosmwasm"], optional = true }
|
|
# note that this has the same version as used by cosmrs
|
|
eyre = { version = "0.6", optional = true }
|
|
cw3 = { workspace = true, optional = true }
|
|
cw4 = { workspace = true, optional = true }
|
|
prost = { version = "0.10", default-features = false, optional = true }
|
|
flate2 = { version = "1.0.20", optional = true }
|
|
sha2 = { version = "0.9.5", optional = true }
|
|
itertools = { version = "0.10", optional = true }
|
|
zeroize = { version = "1.5.7", optional = true, features = ["zeroize_derive"] }
|
|
cosmwasm-std = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
bip39 = { workspace = true }
|
|
cosmrs = { git = "https://github.com/neacsu/cosmos-rust", branch = "neacsu/feegrant_support", features = ["rpc", "bip32"] }
|
|
tokio = { version = "1.24.1", features = ["rt-multi-thread", "macros"] }
|
|
ts-rs = "6.1.2"
|
|
|
|
[[example]]
|
|
name = "offline_signing"
|
|
# it should only really require the "signing" feature,
|
|
# but that would require another round of refactoring to make it possible
|
|
# (traits would need to be moved around and refactored themselves)
|
|
required-features = ["nyxd-client"]
|
|
|
|
[[example]]
|
|
name = "query_service_provider_directory"
|
|
required-features = ["nyxd-client"]
|
|
|
|
[[example]]
|
|
name = "query_name_service"
|
|
required-features = ["nyxd-client"]
|
|
|
|
[features]
|
|
nyxd-client = [
|
|
"async-trait",
|
|
"cosmrs",
|
|
"cosmwasm-std",
|
|
"cw3",
|
|
"cw4",
|
|
"flate2",
|
|
"itertools",
|
|
"openssl",
|
|
"prost",
|
|
"sha2",
|
|
"signing"
|
|
]
|
|
signing = [
|
|
"bip39",
|
|
"cosmrs",
|
|
"eyre",
|
|
"nym-config",
|
|
"zeroize"
|
|
]
|
|
generate-ts = []
|
|
|