[package] name = "esplora-client" version = "0.11.0" edition = "2021" authors = ["Alekos Filini "] license = "MIT" homepage = "https://github.com/bitcoindevkit/rust-esplora-client" repository = "https://github.com/bitcoindevkit/rust-esplora-client" documentation = "https://docs.rs/esplora-client/" description = "Bitcoin Esplora API client library. Supports plaintext, TLS and Onion servers. Blocking or async" keywords = ["bitcoin", "esplora"] readme = "README.md" rust-version = "1.63.0" [lib] name = "esplora_client" path = "src/lib.rs" [dependencies] serde = { version = "1.0", features = ["derive"] } bitcoin = { version = "0.32", features = ["serde", "std"], default-features = false } hex = { version = "0.2", package = "hex-conservative" } log = "^0.4" minreq = { version = "2.11.0", features = ["json-using-serde"], optional = true } reqwest = { version = "0.11", features = ["json"], default-features = false, optional = true } # default async runtime tokio = { version = "1", features = ["time"], optional = true } [dev-dependencies] serde_json = "1.0" tokio = { version = "1.20.1", features = ["full"] } electrsd = { version = "0.28.0", features = ["legacy", "esplora_a33e97e1", "bitcoind_25_0"] } lazy_static = "1.4.0" [features] default = ["blocking", "async", "async-https", "tokio"] blocking = ["minreq", "minreq/proxy"] blocking-https = ["blocking", "minreq/https"] blocking-https-rustls = ["blocking", "minreq/https-rustls"] blocking-https-native = ["blocking", "minreq/https-native"] blocking-https-bundled = ["blocking", "minreq/https-bundled"] tokio = ["dep:tokio"] async = ["reqwest", "reqwest/socks", "tokio?/time"] async-https = ["async", "reqwest/default-tls"] async-https-native = ["async", "reqwest/native-tls"] async-https-rustls = ["async", "reqwest/rustls-tls"] async-https-rustls-manual-roots = ["async", "reqwest/rustls-tls-manual-roots"]