# 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-node-db"
version = "0.15.0-rc.0"
authors = ["Miden contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared database capabilities for Miden node"
homepage = "https://miden.xyz"
readme = "README.md"
keywords = [
    "database",
    "miden",
    "node",
]
license = "MIT"
repository = "https://github.com/0xMiden/node"
resolver = "2"

[lib]
name = "miden_node_db"
path = "src/lib.rs"
doctest = false

[dependencies.anyhow]
version = "1.0"

[dependencies.build-rs]
version = "0.3"

[dependencies.codegen]
version = "0.3"

[dependencies.deadpool]
version = "0.12"
default-features = false

[dependencies.deadpool-diesel]
version = "0.6"
features = ["sqlite"]

[dependencies.deadpool-sync]
version = "0.1"
default-features = false

[dependencies.diesel]
version = "2.3"
features = ["sqlite"]

[dependencies.fs-err]
version = "3"

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

[dependencies.rusqlite]
version = "0.37"
features = ["bundled"]

[dependencies.sha2]
version = "0.10"

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

[dependencies.tracing]
version = "0.1"

[lints.clippy]
allow_attributes = "deny"
cast_possible_truncation = "allow"
collapsible-if = "allow"
from_iter_instead_of_collect = "allow"
ignored_unit_patterns = "allow"
large_types_passed_by_value = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_for_each = "allow"
should_panic_without_expect = "allow"

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