bark-rest 0.2.2

a REST server built on top of the bark-wallet crate
# 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 = "bark-rest"
version = "0.2.2"
authors = ["Second Team <hello@second.tech>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "a REST server built on top of the bark-wallet crate"
readme = false
license = "MIT"
repository = "https://gitlab.com/ark-bitcoin/bark"
resolver = "2"

[features]
default = [
    "native",
    "swagger-ui",
]
native = ["bark-wallet/native"]
swagger-ui = ["dep:utoipa-swagger-ui"]

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

[[example]]
name = "dump_api_docs"
path = "examples/dump_api_docs.rs"

[dependencies.anyhow]
version = "1.0"
features = ["backtrace"]

[dependencies.ark-lib]
version = "0.2.2"

[dependencies.axum]
version = "0.8.4"
features = [
    "macros",
    "tokio",
    "http2",
    "query",
    "json",
    "ws",
]
default-features = false

[dependencies.bark-bitcoin-ext]
version = "0.2.2"

[dependencies.bark-json]
version = "0.2.2"
features = ["utoipa"]

[dependencies.bark-wallet]
version = "0.2.2"
features = ["onchain-bdk"]
default-features = false

[dependencies.base64]
version = "0.22"

[dependencies.bitcoin]
version = "0.32.7"
features = [
    "serde",
    "rand",
    "rand-std",
]

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.futures]
version = "0.3.30"

[dependencies.log]
version = "0.4.27"
features = [
    "kv",
    "kv_serde",
]

[dependencies.parking_lot]
version = "0.12.4"

[dependencies.serde]
version = "1.0.219"

[dependencies.serde_json]
version = "1"
features = ["raw_value"]

[dependencies.tokio]
version = "1.35"
default-features = false

[dependencies.tokio-util]
version = "0.7.14"
default-features = false

[dependencies.tower]
version = "0.5.2"

[dependencies.tower-http]
version = "0.5"
features = [
    "cors",
    "trace",
]

[dependencies.tracing]
version = "0.1.43"
features = [
    "std",
    "attributes",
]

[dependencies.utoipa]
version = "5.4.0"
features = [
    "axum_extras",
    "chrono",
    "uuid",
]

[dependencies.utoipa-axum]
version = "0.2.0"

[dependencies.utoipa-swagger-ui]
version = "9.0.2"
features = ["axum"]
optional = true