# 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-idxdb-store"
version = "0.15.4"
authors = ["miden contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "IndexedDB-backed Store implementation for miden-client (WASM)"
readme = "README.md"
license = "MIT"
repository = "https://github.com/0xMiden/web-sdk"
resolver = "2"

[package.metadata.cargo-machete]
ignored = ["serde_bytes"]

[lib]
name = "miden_idxdb_store"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4"

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

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

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

[dependencies.serde_bytes]
version = "0.11"

[dependencies.wasm-bindgen]
version = "0.2"
features = ["serde-serialize"]

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

[build-dependencies.miette]
version = "7.6"
features = ["fancy"]

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "Storage",
    "Window",
    "console",
]

[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
