# 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 = "2021"
name = "fedimint-bitcoind"
version = "0.4.3"
authors = ["The Fedimint Developers"]
description = "Bitcoin Core connectivity used by Fedimint"
readme = "README.md"
license = "MIT"
repository = "https://github.com/fedimint/fedimint"

[package.metadata.docs.rs]
rustc-args = [
    "--cfg",
    "tokio_unstable",
]

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

[dependencies.anyhow]
version = "1.0.86"

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

[dependencies.bitcoin]
version = "0.30.2"

[dependencies.bitcoincore-rpc]
version = "0.17.0"
optional = true

[dependencies.electrum-client]
version = "0.18.0"
optional = true

[dependencies.esplora-client]
version = "0.6.0"
features = [
    "async",
    "async-https-rustls",
]
optional = true
default-features = false

[dependencies.fedimint-core]
version = "=0.4.3"

[dependencies.fedimint-logging]
version = "=0.4.3"

[dependencies.hex]
version = "0.4.3"

[dependencies.once_cell]
version = "1.19.0"

[dependencies.rand]
version = "0.8.5"

[dependencies.serde]
version = "1.0.203"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.120"

[dependencies.tracing]
version = "0.1.40"

[dependencies.url]
version = "2.5.2"

[features]
default = [
    "bitcoincore-rpc",
    "electrum-client",
    "esplora-client",
]
