miden-client-web 0.15.0

Web Client library that facilitates interaction with the Miden network
# 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 = "2024"
rust-version = "1.93"
name = "miden-client-web"
version = "0.15.0"
authors = ["miden contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Web Client library that facilitates interaction with the Miden network"
documentation = "https://docs.rs/miden-client-web"
readme = "README.md"
keywords = [
    "client",
    "miden",
    "wasm",
    "web",
]
categories = ["no-std"]
license = "MIT"
repository = "https://github.com/0xMiden/web-sdk"
resolver = "2"

[package.metadata.cargo-machete]
ignored = [
    "wasm-bindgen-futures",
    "web-sys",
]

[features]
browser = [
    "dep:console_error_panic_hook",
    "dep:idxdb-store",
    "dep:js-sys",
    "dep:serde-wasm-bindgen",
    "dep:tracing",
    "dep:tracing-subscriber",
    "dep:tracing-wasm",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
    "dep:web-sys",
    "miden-client/tonic",
]
default = ["browser"]
mt-threads = [
    "dep:rayon",
    "dep:wasm-bindgen-rayon",
    "miden-client/concurrent",
]
nodejs = [
    "dep:miden-client-sqlite-store",
    "dep:napi",
    "dep:napi-build",
    "dep:napi-derive",
    "dep:tokio",
    "miden-client/std",
    "miden-client/tonic",
]
testing = ["miden-client/testing"]

[lib]
name = "miden_client_web"
crate-type = ["cdylib"]
path = "src/lib.rs"

[dependencies.async-trait]
version = "0.1"

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

[dependencies.hex]
version = "0.4"

[dependencies.idxdb-store]
version = "0.15.0"
optional = true
default-features = false
package = "miden-idxdb-store"

[dependencies.js-export-macro]
version = "0.15.0"

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.miden-client]
version = "0.15.0"
features = ["testing"]
default-features = false

[dependencies.miden-client-sqlite-store]
version = "0.15.0"
optional = true
default-features = false

[dependencies.miden-protocol]
version = "0.15"
default-features = false

[dependencies.miden-standards]
version = "0.15"
default-features = false

[dependencies.napi]
version = "3"
features = [
    "async",
    "napi8",
    "tokio_rt",
]
optional = true
default-features = false

[dependencies.napi-derive]
version = "3"
optional = true
default-features = false

[dependencies.rand]
version = "0.9"

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "derive",
]

[dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true

[dependencies.thiserror]
version = "2.0"
default-features = false

[dependencies.tokio]
version = "1.48"
features = [
    "macros",
    "rt-multi-thread",
]
optional = true

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

[dependencies.tracing-subscriber]
version = "0.3"
features = ["registry"]
optional = true
default-features = false

[dependencies.tracing-wasm]
version = "0.2"
optional = true

[dependencies.wasm-bindgen]
version = "=0.2.108"
features = ["serde-serialize"]
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true

[dependencies.wasm-bindgen-rayon]
version = "1.3"
optional = true

[dependencies.web-sys]
version = "0.3"
features = ["console"]
optional = true

[build-dependencies.napi-build]
version = "2"
optional = true

[lints.clippy]
ignored_unit_patterns = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
should_panic_without_expect = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1