# 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-utils"
version = "0.14.7"
authors = ["Miden contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Miden node's shared utilities"
homepage = "https://miden.xyz"
readme = "README.md"
keywords = [
    "miden",
    "node",
    "utils",
]
license = "MIT"
repository = "https://github.com/0xMiden/node"
resolver = "2"

[features]
rocksdb = ["dep:miden-large-smt-backend-rocksdb"]
testing = ["miden-protocol/testing"]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.bytes]
version = "1.10"

[dependencies.clap]
version = "4.5"
features = ["derive"]

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

[dependencies.governor]
version = "0.10"

[dependencies.http]
version = "1.3"

[dependencies.http-body-util]
version = "0.1"

[dependencies.humantime]
version = "2.2"

[dependencies.itertools]
version = "0.14"

[dependencies.lru]
version = "0.16"
default-features = false

[dependencies.miden-large-smt-backend-rocksdb]
version = "0.14"
optional = true

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

[dependencies.opentelemetry]
version = "0.31"

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "grpc-tonic",
    "tls-roots",
    "trace",
]
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.31"
features = [
    "rt-tokio",
    "testing",
]

[dependencies.rand]
version = "0.9"

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

[dependencies.tokio]
version = "1.46"
features = ["rt-multi-thread"]

[dependencies.tonic]
version = "0.14"
default-features = true

[dependencies.tower]
version = "0.5"
features = ["limit"]

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "trace",
    "catch-panic",
]

[dependencies.tower_governor]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-forest]
version = "0.3"
features = ["chrono"]
optional = true

[dependencies.tracing-opentelemetry]
version = "0.32"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "json",
]

[dependencies.url]
version = "2.5"
features = ["serde"]

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

[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
