[workspace]
members = [ "bitcoind-client", "txood", "txoo-cli", "push-decoder" ]

[package]
name = "txoo"
version = "0.6.1"
edition = "2021"
authors = ["Devrandom <c1.devrandom@niftybox.net>", "Ken Sedgwick <ken@bonsai.com>"]
license = "Apache-2.0"
description = "A Bitcoin transaction-output oracle"
homepage = "https://gitlab.com/lightning-signer/docs/-/blob/master/oracle.md"
repository = "https://gitlab.com/lightning-signer/txoo"
readme = "README.md"
rust-version = "1.60.0"

[features]
default = ["std", "prover", "source"]

std = ["bitcoin/std", "serde/std"]
no-std = ["bitcoin/no-std", "core2/alloc"]
prover = []
source = ["use-serde", "serde_yaml", "async-trait", "hyper", "hyper-rustls", "url"]
use-serde = ["serde", "bitcoin/serde"]
test-utils = []

[dependencies]
bitcoin = { version = "0.29", features = [], default-features = false }
serde = { version = "1.0", features = ["derive", "alloc"], default-features = false, optional = true }
serde_yaml = { version = "0.9", optional = true }
core2 = { version = "0.3", optional = true, default-features = false }
async-trait = { version = "0.1", optional = true }
hyper = { version = "0.14", optional = true, features = ["full"] }
# match the reqwest version used by bitcoind-client
hyper-rustls = { version = "0.24", optional = true }
url = { version = "2.2", optional = true }
log = "0.4"
