# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "nym-wasm-utils"
version = "1.20.4"
authors = ["Jedrzej Stuczynski <andrew@nymtech.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Helpers and macros for the Nym WASM client"
homepage = "https://nymtech.net"
documentation = "https://nymtech.net"
readme = false
license = "Apache-2.0"
repository = "https://github.com/nymtech/nym"

[features]
crypto = [
    "web-sys",
    "web-sys/Crypto",
    "web-sys/CryptoKey",
    "web-sys/CryptoKeyPair",
    "web-sys/SubtleCrypto",
    "web-sys/Window",
    "web-sys/WorkerGlobalScope",
]
default = ["sleep"]
sleep = [
    "web-sys",
    "web-sys/Window",
]
websocket = [
    "getrandom",
    "tungstenite",
    "gloo-net",
]

[lib]
name = "nym_wasm_utils"
path = "src/lib.rs"

[dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[dependencies.futures]
version = "0.3.31"

[dependencies.getrandom]
version = "0.2.10"
features = ["js"]
optional = true

[dependencies.gloo-net]
version = "0.6.0"
features = ["websocket"]
optional = true

[dependencies.gloo-utils]
version = "0.2.0"

[dependencies.js-sys]
version = "0.3.76"

[dependencies.tungstenite]
version = "0.20.1"
optional = true
default-features = false

[dependencies.wasm-bindgen]
version = "0.2.99"

[dependencies.wasm-bindgen-futures]
version = "0.4.49"

[dependencies.web-sys]
version = "0.3.76"
optional = true
