# 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"
rust-version = "1.85.0"
name = "halfin"
version = "0.2.0"
authors = ["Luis Schwab <dev@luisschwab.net"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A (regtest) bitcoin node runner 🏃‍♂️"
documentation = "https://docs.rs/halfin"
readme = "README.md"
keywords = [
    "bitcoin",
    "runner",
    "testing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/luisschwab/halfin"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.rbmt.toolchains]
stable = "1.85.0"
nightly = "nightly-2026-03-18"

[package.metadata.rbmt.test]
exclude_features = [
    "bitcoind_30_2",
    "utreexod_0_5_0",
]
exact_features = [[
    "bitcoind_30_2",
    "utreexod_0_5_0",
]]

[package.metadata.rbmt.lint]
allowed_duplicates = [
    "anyhow",
    "base64",
    "bitcoin-internals",
    "bitcoin_hashes",
    "bitreq",
    "hex-conservative",
    "rustix",
    "windows-sys",
]

[features]
bitcoind_30_2 = []
default = [
    "bitcoind_30_2",
    "utreexod_0_5_0",
]
utreexod_0_5_0 = []

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

[[test]]
name = "integration"
path = "tests/integration.rs"

[dependencies.corepc-client]
version = "0.12.0"
features = ["client-sync"]

[dependencies.log]
version = "0.4.8"
default-features = false

[dependencies.serde_json]
version = "1.0.117"
default-features = false

[dependencies.tempfile]
version = "3"
default-features = false

[dependencies.which]
version = "3"
default-features = false

[dev-dependencies.env_logger]
version = "0.9"
default-features = false

[build-dependencies.anyhow]
version = "1.0.66"

[build-dependencies.bitcoin_hashes]
version = "0.20"
features = ["hex"]

[build-dependencies.bitreq]
version = "0.3"
features = ["https"]

[build-dependencies.flate2]
version = "1.0.22"

[build-dependencies.tar]
version = "0.4.42"

[build-dependencies.zip]
version = "0.6"
features = [
    "bzip2",
    "deflate",
]
default-features = false

[lints.clippy]
let-and-return = "allow"
