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>
59 lines
2.0 KiB
TOML
59 lines
2.0 KiB
TOML
[package]
|
|
name = "client-core"
|
|
version = "1.0.1"
|
|
authors = ["Dave Hrycyszyn <futurechimp@users.noreply.github.com>"]
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
dirs = "4.0"
|
|
futures = "0.3"
|
|
humantime-serde = "1.0"
|
|
log = "0.4"
|
|
rand = { version = "0.7.3", features = ["wasm-bindgen"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
sled = { version = "0.34", optional = true }
|
|
thiserror = "1.0.34"
|
|
url = { version ="2.2", features = ["serde"] }
|
|
|
|
# internal
|
|
config = { path = "../../common/config" }
|
|
crypto = { path = "../../common/crypto" }
|
|
gateway-client = { path = "../../common/client-libs/gateway-client" }
|
|
#gateway-client = { path = "../../common/client-libs/gateway-client", default-features = false, features = ["wasm", "coconut"] }
|
|
gateway-requests = { path = "../../gateway/gateway-requests" }
|
|
nonexhaustive-delayqueue = { path = "../../common/nonexhaustive-delayqueue" }
|
|
nymsphinx = { path = "../../common/nymsphinx" }
|
|
pemstore = { path = "../../common/pemstore" }
|
|
topology = { path = "../../common/topology" }
|
|
validator-client = { path = "../../common/client-libs/validator-client", default-features = false }
|
|
tap = "1.0.1"
|
|
|
|
tokio = { version = "1.21.2", features = ["time", "macros"]}
|
|
|
|
[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen-futures]
|
|
version = "0.4"
|
|
|
|
[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen]
|
|
version = "0.2.83"
|
|
|
|
[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-timer]
|
|
git = "https://github.com/mmsinclair/wasm-timer"
|
|
rev = "b9d1a54ad514c2f230a026afe0dde341e98cd7b6"
|
|
|
|
[target."cfg(target_arch = \"wasm32\")".dependencies.gloo-timers]
|
|
version = "0.2.4"
|
|
features = ["futures"]
|
|
|
|
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.task]
|
|
path = "../../common/task"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.1.0"
|
|
|
|
[features]
|
|
default = ["reply-surb"]
|
|
wasm = ["gateway-client/wasm"]
|
|
coconut = ["gateway-client/coconut", "gateway-requests/coconut"]
|
|
reply-surb = ["sled"] |