halfin 0.5.0

A {regtest} bitcoin node and indexer runner 🏃‍♂️
Documentation
# 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.5.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 and indexer runner 🏃‍♂️"
documentation = "https://docs.rs/halfin"
readme = "README.md"
keywords = [
    "bitcoin",
    "electrum",
    "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.96.1"
nightly = "nightly-2026-06-30"

[package.metadata.rbmt.tools]
cargo-audit = "=0.22.2"
zizmor = "=1.26.1"

[package.metadata.rbmt.test]
sample_strategy = "all"

[package.metadata.rbmt.lint]
allowed_duplicates = ["base64"]

[features]
bitcoind = []
default = [
    "bitcoind",
    "utreexod",
]
electrs = [
    "bitcoind",
    "dep:electrum-client",
]
electrumx = [
    "bitcoind",
    "dep:electrum-client",
]
utreexod = []

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

[[example]]
name = "cross-compile-electrs"
path = "contrib/compile_electrs/build.rs"
test = false
bench = false

[[example]]
name = "cross-compile-electrumx"
path = "contrib/compile_electrumx/build.rs"
test = false
bench = false

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

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

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

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

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

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

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

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

[dependencies.electrum-client]
version = "=0.25.0"
optional = true
default-features = false

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

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

[dependencies.tracing]
version = "=0.1.44"
features = ["std"]
default-features = false

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

[dev-dependencies.lazy_static]
version = "=1.5.0"

[dev-dependencies.tracing-subscriber]
version = "=0.3.23"
features = ["fmt"]

[dev-dependencies.xshell]
version = "=0.3.0-pre.2"

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

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

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

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

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

[lints.clippy]
assigning_clones = "warn"
bool_to_int_with_if = "warn"
borrow_as_ptr = "warn"
case_sensitive_file_extension_comparisons = "warn"
cast_lossless = "warn"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "warn"
cast_ptr_alignment = "warn"
cast_sign_loss = "allow"
checked_conversions = "warn"
cloned_instead_of_copied = "warn"
copy_iterator = "warn"
default_trait_access = "warn"
doc_link_with_quotes = "warn"
doc_markdown = "warn"
empty_enums = "warn"
enum_glob_use = "warn"
expl_impl_clone_on_copy = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp = "allow"
fn_params_excessive_bools = "warn"
if_not_else = "warn"
ignored_unit_patterns = "warn"
implicit_clone = "warn"
implicit_hasher = "warn"
inconsistent_struct_constructor = "warn"
index_refutable_slice = "warn"
inefficient_to_string = "warn"
inline_always = "warn"
into_iter_without_iter = "warn"
invalid_upcast_comparisons = "warn"
items_after_statements = "warn"
iter_filter_is_ok = "warn"
iter_filter_is_some = "warn"
iter_not_returning_iterator = "warn"
iter_without_into_iter = "warn"
large_digit_groups = "warn"
large_futures = "warn"
large_stack_arrays = "warn"
large_types_passed_by_value = "warn"
linkedlist = "warn"
macro_use_imports = "warn"
manual_assert = "warn"
manual_instant_elapsed = "warn"
manual_is_power_of_two = "warn"
manual_is_variant_and = "warn"
manual_let_else = "warn"
manual_ok_or = "warn"
manual_range_contains = "allow"
manual_string_new = "warn"
many_single_char_names = "warn"
map_unwrap_or = "warn"
match_bool = "allow"
match_same_arms = "allow"
match_wild_err_arm = "warn"
match_wildcard_for_single_variants = "warn"
maybe_infinite_iter = "warn"
mismatching_type_param_order = "warn"
missing_docs_in_private_items = "warn"
missing_errors_doc = "warn"
missing_fields_in_debug = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
must_use_candidate = "allow"
mut_mut = "warn"
naive_bytecount = "warn"
needless_bitwise_bool = "warn"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_value = "warn"
needless_question_mark = "allow"
needless_raw_string_hashes = "warn"
no_effect_underscore_binding = "warn"
no_mangle_with_rust_abi = "warn"
option_as_ref_cloned = "warn"
option_option = "warn"
ptr_as_ptr = "warn"
ptr_cast_constness = "warn"
pub_underscore_fields = "warn"
range_minus_one = "warn"
range_plus_one = "warn"
redundant_clone = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
ref_as_ptr = "warn"
ref_binding_to_reference = "warn"
ref_option = "warn"
ref_option_ref = "warn"
return_self_not_must_use = "warn"
same_functions_in_if_condition = "warn"
semicolon_if_nothing_returned = "warn"
should_panic_without_expect = "warn"
similar_names = "allow"
single_char_pattern = "warn"
single_match_else = "warn"
stable_sort_primitive = "warn"
str_split_at_newline = "warn"
string_add_assign = "warn"
struct_excessive_bools = "warn"
struct_field_names = "allow"
too_many_lines = "warn"
transmute_ptr_to_ptr = "warn"
trivially_copy_pass_by_ref = "warn"
unchecked_time_subtraction = "warn"
unicode_not_nfc = "warn"
uninlined_format_args = "allow"
unnecessary_box_returns = "warn"
unnecessary_join = "warn"
unnecessary_literal_bound = "warn"
unnecessary_wraps = "warn"
unnested_or_patterns = "warn"
unreadable_literal = "warn"
unsafe_derive_deserialize = "warn"
unused_async = "warn"
unused_self = "warn"
use_self = "warn"
used_underscore_binding = "warn"
used_underscore_items = "warn"
verbose_bit_mask = "warn"
wildcard_imports = "warn"
zero_sized_map_values = "warn"

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unused_qualifications = "warn"