a43d183b4f
* Compiles but runtime time fails * wip * Beginning of clean-up - creation of config to keep things together * Removed unused module * Removed hardcoded constants * Easier way of sending binary messages * WIP cleanup before machine switch * Upgrade wasm-bindgen to 0.2.83 * Fixed compilation warnings for wasm client * all clients compiling without warnings * disabling topology refresh in wasm * Added a config option to disable loop cover traffic stream * config changes * Make webassembly work in a web worker - `wasm-timer` modified to work in web worker - add worker target to webpack - add client to call from HTML - update README to build WASM for bundling (this does not build ES modules) * Restored topology refreshing * correctly polling items in the wasm delay_queue * Allow client to read up to 8 messages at once from gateway connection (#1669) * Allow client to read up to 8 messages at once from gateway connection * Importing tokio::select in wasm32 target * Updated changelog * missing imports * Introduced disable_main_poisson_packet_distribution to force real_traffic_stream to disable poisson sending (#1664) * Introduced disable_main_poisson_packet_distribution to force real_traffic_stream to disable poisson sending * Updated changelog * Adjusting default settings * Introduced a client-configurable option to force it to use extended packet size * local adjustments * Removed warning associated with receiving extended packets * Minimal v2-required changes * Updated changelog * explicitly allowing clippy drop_non_drop Co-authored-by: Mark Sinclair <mmsinclair@gmail.com>
60 lines
2.7 KiB
TOML
60 lines
2.7 KiB
TOML
[package]
|
|
name = "nym-client"
|
|
version = "1.0.2"
|
|
authors = ["Dave Hrycyszyn <futurechimp@users.noreply.github.com>", "Jędrzej Stuczyński <andrew@nymtech.net>"]
|
|
description = "Implementation of the Nym Client"
|
|
edition = "2021"
|
|
rust-version = "1.56"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
name = "nym_client"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
# dependencies to review:
|
|
futures = "0.3" # bunch of futures stuff, however, now that I think about it, it could perhaps be completely removed
|
|
# the AsyncRead, AsyncWrite, Stream, Sink, etc. traits could be used from tokio
|
|
# channels should really be replaced with crossbeam due to that implementation being more efficient
|
|
# and the single instance of abortable we have should really be refactored anyway
|
|
url = "2.2"
|
|
|
|
clap = { version = "3.2", features = ["cargo", "derive"] }
|
|
dirs = "4.0"
|
|
log = "0.4" # self explanatory
|
|
pretty_env_logger = "0.4" # for formatting log messages
|
|
rand = { version = "0.7.3", features = ["wasm-bindgen"] } # rng-related traits + some rng implementation to use
|
|
serde = { version = "1.0.104", features = ["derive"] } # for config serialization/deserialization
|
|
sled = "0.34" # for storage of replySURB decryption keys
|
|
tokio = { version = "1.21.2", features = ["rt-multi-thread", "net", "signal"] } # async runtime
|
|
tokio-tungstenite = "0.14" # websocket
|
|
|
|
## internal
|
|
client-core = { path = "../client-core" }
|
|
coconut-interface = { path = "../../common/coconut-interface", optional = true }
|
|
config = { path = "../../common/config" }
|
|
completions = { path = "../../common/completions" }
|
|
credential-storage = { path = "../../common/credential-storage" }
|
|
credentials = { path = "../../common/credentials", optional = true }
|
|
crypto = { path = "../../common/crypto" }
|
|
gateway-client = { path = "../../common/client-libs/gateway-client" }
|
|
gateway-requests = { path = "../../gateway/gateway-requests" }
|
|
network-defaults = { path = "../../common/network-defaults" }
|
|
nymsphinx = { path = "../../common/nymsphinx" }
|
|
pemstore = { path = "../../common/pemstore" }
|
|
task = { path = "../../common/task" }
|
|
topology = { path = "../../common/topology" }
|
|
validator-client = { path = "../../common/client-libs/validator-client", features = ["nymd-client"] }
|
|
version-checker = { path = "../../common/version-checker" }
|
|
websocket-requests = { path = "websocket-requests" }
|
|
|
|
[features]
|
|
coconut = ["coconut-interface", "credentials", "credentials/coconut", "gateway-requests/coconut", "gateway-client/coconut", "client-core/coconut"]
|
|
|
|
[dev-dependencies]
|
|
serde_json = "1.0" # for the "textsend" example
|
|
|
|
[build-dependencies]
|
|
vergen = { version = "5", default-features = false, features = ["build", "git", "rustc", "cargo"] }
|