Files
2026-04-17 09:23:55 +01:00

56 lines
1.6 KiB
TOML

[package]
name = "nym-topology"
description = "Nym's topology crate"
version.workspace = true
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
documentation = { workspace = true }
rust-version.workspace = true
readme.workspace = true
publish = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-trait = { workspace = true, optional = true }
tracing = { workspace = true }
rand = { workspace = true }
reqwest = { workspace = true, features = ["json"] }
serde = { workspace = true, features = ["derive"] }
thiserror = { workspace = true }
time = { workspace = true, features = ["serde"] }
# 'serde' feature
serde_json = { workspace = true, optional = true }
# 'wasm-serde-types' feature
tsify = { workspace = true, features = ["js"], optional = true }
wasm-bindgen = { workspace = true, optional = true }
## internal
nym-crypto = { workspace = true }
nym-mixnet-contract-common = { workspace = true }
nym-sphinx-addressing = { workspace = true }
nym-sphinx-types = { workspace = true, features = [
"sphinx",
"outfox",
] }
# I'm not sure how to feel about pulling in this dependency here...
nym-api-requests = { workspace = true }
# 'wasm-serde-types' feature
nym-wasm-utils = { workspace = true, optional = true }
[features]
default = ["provider-trait"]
provider-trait = ["async-trait"]
wasm-serde-types = ["tsify", "wasm-bindgen", "nym-wasm-utils"]
persistence = ["serde_json"]
outfox = []