a274edffba
* Calculating gas fees * Ability to set custom fees * Added extra test * Removed commented code * Moved all msg types to common contract crate * Temporarily disabling get_tx method * Finishing up nymd client API * Comment fix * Remaining fee values * Some cleanup * Removed needless borrow * Fixed imports in contract tests * Moved error types around * New ValidatorClient * Experiment with new type of defaults * Removed dead module * Dealt with unwrap * Migrated mixnode to use new validator client * Migrated gateway to use new validator client * Mixnode and gateway adjustments * More exported defaults * Clients using new validator client * Fixed mixnode upgrade * Moved default values to a new crate * Changed behaviour of validator client features * Migrated basic functions of validator api * Updated config + fixed startup * Fixed wasm client build * Integration with the explorer api * Removed tokio dev dependency * Needless borrow * Fixex wasm client build * Fixed tauri client build * Needless borrows * Fixed client upgrade print * Removed redundant comments * Made note on aggregated verification key into a doc comment * Removed mixnet contract references from verloc * Modified default validators structure * Reformatted validator-api Cargo.toml file * Removed commented code * Made the doc comment example a no-run * Fixed a upgrade print... again * Adjusted the doc example * Removed unused import
57 lines
2.0 KiB
TOML
57 lines
2.0 KiB
TOML
[package]
|
|
name = "nym-client-wasm"
|
|
authors = ["Dave Hrycyszyn <futurechimp@users.noreply.github.com>", "Jedrzej Stuczynski <andrew@nymtech.net>"]
|
|
version = "0.11.0"
|
|
edition = "2018"
|
|
keywords = ["nym", "sphinx", "wasm", "webassembly", "privacy", "client"]
|
|
license = "Apache-2.0"
|
|
repository = "https://github.com/nymtech/nym"
|
|
description = "A webassembly client which can be used to interact with the the Nym privacy platform. Wasm is used for Sphinx packet generation."
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[features]
|
|
default = ["console_error_panic_hook"]
|
|
offline-test = []
|
|
|
|
[dependencies]
|
|
futures = "0.3"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
|
|
wasm-bindgen-futures = "0.4"
|
|
js-sys = "0.3"
|
|
rand = { version = "0.7.3", features = ["wasm-bindgen"] }
|
|
url = "2.2"
|
|
|
|
# internal
|
|
coconut-interface = { path = "../../common/coconut-interface" }
|
|
credentials = { path = "../../common/credentials" }
|
|
crypto = { path = "../../common/crypto" }
|
|
nymsphinx = { path = "../../common/nymsphinx" }
|
|
topology = { path = "../../common/topology" }
|
|
gateway-client = { path = "../../common/client-libs/gateway-client" }
|
|
validator-client = { path = "../../common/client-libs/validator-client", default-features = false }
|
|
wasm-utils = { path = "../../common/wasm-utils" }
|
|
|
|
# The `console_error_panic_hook` crate provides better debugging of panics by
|
|
# logging them with `console.error`. This is great for development, but requires
|
|
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
|
|
# code size when deploying.
|
|
console_error_panic_hook = { version = "0.1", optional = true }
|
|
|
|
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
|
|
# compared to the default allocator's ~10K. It is slower than the default
|
|
# allocator, however.
|
|
#
|
|
# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
|
|
wee_alloc = { version = "0.4", optional = true }
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = "0.3"
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = false
|
|
|
|
|