1ac262ec90
* Initial commit * Cherry pick from develop * Keep track of fragments * A bunch of data formats, graphs * Use mix_id for display * Proper API routes * Add openapi + swagger ui * Update locustfile * Add node stats endpoint * Add Swagger and locust to readme * All node stats endpoint * Update dependencies to use workspace * Bunch of pedantic fixes * More version updates, fmt * More lints * Add new_from_env for NymTopology * Nym API endpoint to submit monitoring results (#4616) * Nym API endpoint to submit monitoring results * Add gateway monitoring results * Cleanup, ergonomics * Weaponize * Finalize results submissions * Monitor message signing and verification * Update README * Axum graceful shutdown * More grtacefulness * Restructure result submission * Less fragile routes * Remove gateway unique index on node_id
60 lines
1.9 KiB
TOML
60 lines
1.9 KiB
TOML
[package]
|
|
name = "nym-sphinx"
|
|
version = "0.1.0"
|
|
description = "Top-level crate for sphinx packets as used by the Nym mixnet"
|
|
edition = { workspace = true }
|
|
authors = { workspace = true }
|
|
license = { workspace = true }
|
|
repository = { workspace = true }
|
|
|
|
[dependencies]
|
|
log = { workspace = true }
|
|
rand = { workspace = true }
|
|
rand_distr = { workspace = true }
|
|
rand_chacha = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
|
|
nym-sphinx-acknowledgements = { path = "acknowledgements" }
|
|
nym-sphinx-addressing = { path = "addressing" }
|
|
nym-sphinx-anonymous-replies = { path = "anonymous-replies" }
|
|
nym-sphinx-chunking = { path = "chunking" }
|
|
nym-sphinx-cover = { path = "cover" }
|
|
nym-sphinx-forwarding = { path = "forwarding" }
|
|
nym-sphinx-params = { path = "params" }
|
|
nym-sphinx-routing = { path = "routing" }
|
|
nym-sphinx-types = { path = "types" }
|
|
|
|
# those dependencies are due to intriducing preparer and receiver. Perpaphs that indicates they should be moved
|
|
# to separate crate?
|
|
nym-crypto = { path = "../crypto", version = "0.4.0" }
|
|
nym-topology = { path = "../topology" }
|
|
nym-metrics = { path = "../nym-metrics" }
|
|
|
|
[dev-dependencies]
|
|
nym-mixnet-contract-common = { path = "../cosmwasm-smart-contracts/mixnet-contract" }
|
|
nym-crypto = { path = "../crypto", version = "0.4.0", features = [
|
|
"asymmetric",
|
|
] }
|
|
|
|
# do not include this when compiling into wasm as it somehow when combined together with reqwest, it will require
|
|
# net2 via tokio-util -> tokio -> mio -> net2
|
|
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.nym-sphinx-framing]
|
|
path = "framing"
|
|
|
|
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio]
|
|
version = "1.24.1"
|
|
features = ["sync"]
|
|
|
|
[features]
|
|
default = ["sphinx"]
|
|
sphinx = [
|
|
"nym-crypto/sphinx",
|
|
"nym-sphinx-params/sphinx",
|
|
"nym-sphinx-types/sphinx",
|
|
]
|
|
outfox = [
|
|
"nym-crypto/outfox",
|
|
"nym-sphinx-params/outfox",
|
|
"nym-sphinx-types/outfox",
|
|
]
|