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
45 lines
1.3 KiB
TOML
45 lines
1.3 KiB
TOML
[package]
|
|
name = "wasm-utils"
|
|
version = "0.1.0"
|
|
authors = ["Jedrzej Stuczynski <andrew@nymtech.net>"]
|
|
edition = "2021"
|
|
license.workspace = true
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
futures = { workspace = true }
|
|
js-sys = { workspace = true }
|
|
wasm-bindgen = { workspace = true }
|
|
wasm-bindgen-futures = { workspace = true }
|
|
getrandom = { workspace = true, features = ["js"], optional = true }
|
|
gloo-utils = { workspace = true }
|
|
gloo-net = { workspace = true, features = ["websocket"], optional = true }
|
|
#gloo-net = { path = "../../../../gloo/crates/net", features = ["websocket"], optional = true }
|
|
|
|
console_error_panic_hook = { workspace = true, optional = true }
|
|
|
|
# we don't want entire tokio-tungstenite, tungstenite itself is just fine - we just want message and error enums
|
|
[dependencies.tungstenite]
|
|
workspace = true
|
|
default-features = false
|
|
optional = true
|
|
|
|
[dependencies.web-sys]
|
|
workspace = true
|
|
optional = true
|
|
|
|
[features]
|
|
default = ["sleep"]
|
|
sleep = ["web-sys", "web-sys/Window"]
|
|
websocket = ["getrandom", "tungstenite", "gloo-net"]
|
|
crypto = [
|
|
"web-sys",
|
|
"web-sys/Crypto",
|
|
"web-sys/CryptoKey",
|
|
"web-sys/CryptoKeyPair",
|
|
"web-sys/SubtleCrypto",
|
|
"web-sys/Window",
|
|
"web-sys/WorkerGlobalScope",
|
|
]
|