[package] name = "nym-client-core" version = "1.1.15" authors = ["Dave Hrycyszyn "] edition = "2021" rust-version = "1.76" license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] async-trait = { workspace = true } base64 = { workspace = true } bs58 = { workspace = true } cfg-if = { workspace = true } clap = { workspace = true, optional = true } comfy-table = { workspace = true, optional = true } futures = { workspace = true } humantime-serde = { workspace = true } log = { workspace = true } rand = { workspace = true } rand_chacha = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } sha2 = { workspace = true } si-scale = { workspace = true } tap = { workspace = true } thiserror = { workspace = true } url = { workspace = true, features = ["serde"] } tokio = { workspace = true, features = ["macros"] } time = { workspace = true } zeroize = { workspace = true } # internal nym-id = { path = "../nym-id" } nym-bandwidth-controller = { path = "../bandwidth-controller" } nym-config = { path = "../config" } nym-country-group = { path = "../country-group" } nym-crypto = { path = "../crypto" } nym-explorer-client = { path = "../../explorer-api/explorer-client" } nym-gateway-client = { path = "../client-libs/gateway-client" } nym-gateway-requests = { path = "../gateway-requests" } nym-metrics = { path = "../nym-metrics" } nym-nonexhaustive-delayqueue = { path = "../nonexhaustive-delayqueue" } nym-sphinx = { path = "../nymsphinx" } nym-statistics-common = { path = "../statistics" } nym-pemstore = { path = "../pemstore" } nym-topology = { path = "../topology", features = ["persistence"] } nym-mixnet-client = { path = "../client-libs/mixnet-client", default-features = false } nym-validator-client = { path = "../client-libs/validator-client", default-features = false } nym-task = { path = "../task" } nym-credentials-interface = { path = "../credentials-interface" } nym-credential-storage = { path = "../credential-storage" } nym-network-defaults = { path = "../network-defaults" } nym-client-core-config-types = { path = "./config-types", features = [ "disk-persistence", ] } nym-client-core-surb-storage = { path = "./surb-storage" } nym-client-core-gateways-storage = { path = "./gateways-storage" } nym-ecash-time = { path = "../ecash-time" } ### For serving prometheus metrics [target."cfg(not(target_arch = \"wasm32\"))".dependencies.hyper] workspace = true features = ["server", "http1"] [target."cfg(not(target_arch = \"wasm32\"))".dependencies.http-body-util] workspace = true [target."cfg(not(target_arch = \"wasm32\"))".dependencies.hyper-util] workspace = true features = ["tokio"] ### [target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio-stream] workspace = true features = ["time"] [target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio] workspace = true features = ["time"] [target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio-tungstenite] workspace = true features = ["rustls-tls-webpki-roots"] [target."cfg(not(target_arch = \"wasm32\"))".dependencies.tungstenite] workspace = true default-features = true features = ["rustls-tls-webpki-roots"] [target."cfg(target_arch = \"wasm32\")".dependencies.tungstenite] workspace = true default-features = false [target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen-futures] workspace = true [target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen] workspace = true [target."cfg(target_arch = \"wasm32\")".dependencies.wasmtimer] workspace = true features = ["tokio"] [target."cfg(target_arch = \"wasm32\")".dependencies.gloo-timers] version = "0.3.0" features = ["futures"] [target."cfg(target_arch = \"wasm32\")".dependencies.wasm-utils] path = "../wasm/utils" features = ["websocket"] [target."cfg(target_arch = \"wasm32\")".dependencies.time] workspace = true features = ["wasm-bindgen"] [dev-dependencies] tempfile = { workspace = true } [features] default = [] cli = ["clap", "comfy-table"] fs-credentials-storage = ["nym-credential-storage/persistent-storage"] fs-surb-storage = ["nym-client-core-surb-storage/fs-surb-storage"] fs-gateways-storage = ["nym-client-core-gateways-storage/fs-gateways-storage"] wasm = ["nym-gateway-client/wasm"] metrics-server = []