# 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"
name = "brk_server"
version = "0.3.5"
build = false
exclude = [
    "examples/",
    "src/api/scalar.js",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A server with an API for anything from BRK"
homepage = "https://bitcoinresearchkit.org"
readme = "README.md"
license = "MIT"
repository = "https://github.com/bitcoinresearchkit/brk"

[features]
bindgen = ["dep:brk_bindgen"]

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

[dependencies.aide]
version = "0.16.0-alpha.4"
features = [
    "axum-json",
    "axum-query",
]

[dependencies.axum]
version = "0.8.9"
features = [
    "http1",
    "json",
    "query",
    "tokio",
    "tracing",
]
default-features = false

[dependencies.brk_bindgen]
version = "0.3.5"
optional = true

[dependencies.brk_computer]
version = "0.3.5"

[dependencies.brk_error]
version = "0.3.5"
features = [
    "jiff",
    "serde_json",
    "tokio",
    "vecdb",
]

[dependencies.brk_indexer]
version = "0.3.5"

[dependencies.brk_logger]
version = "0.3.5"

[dependencies.brk_oracle]
version = "0.3.5"

[dependencies.brk_query]
version = "0.3.5"
features = ["tokio"]

[dependencies.brk_reader]
version = "0.3.5"

[dependencies.brk_rpc]
version = "0.3.5"

[dependencies.brk_traversable]
version = "0.3.5"
features = [
    "pco",
    "derive",
]

[dependencies.brk_types]
version = "0.3.5"

[dependencies.brk_website]
version = "0.3.5"

[dependencies.derive_more]
version = "2.1.1"
features = [
    "deref",
    "deref_mut",
]

[dependencies.jiff]
version = "0.2.29"
features = [
    "perf-inline",
    "tz-system",
]
default-features = false

[dependencies.rustc-hash]
version = "2.1.2"

[dependencies.schemars]
version = "1.2.1"
features = ["indexmap2"]

[dependencies.serde]
version = "1.0.228"

[dependencies.serde_json]
version = "1.0.150"
features = [
    "float_roundtrip",
    "preserve_order",
]

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

[dependencies.tower-http]
version = "0.7.0"
features = [
    "catch-panic",
    "compression-br",
    "compression-gzip",
    "compression-zstd",
    "cors",
    "normalize-path",
    "timeout",
    "trace",
]

[dependencies.tower-layer]
version = "0.3"

[dependencies.tracing]
version = "0.1"
features = ["std"]
default-features = false

[dependencies.vecdb]
version = "0.10.3"
features = [
    "derive",
    "serde_json",
    "pco",
    "schemars",
]

[dev-dependencies.brk_bindgen]
version = "0.3.5"

[dev-dependencies.brk_mempool]
version = "0.3.5"

[dev-dependencies.color-eyre]
version = "0.6.5"
