1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
[]
= "blvm-node"
= "0.1.0"
= "2021"
= ["Bitcoin Commons Team"]
= "Bitcoin Commons BLVM: Minimal Bitcoin node implementation using blvm-protocol and blvm-consensus"
= "MIT"
= "https://github.com/BTCDecoded/blvm-node"
= "https://btcdecoded.org"
= "https://docs.rs/blvm-node"
= ["bitcoin", "node", "blockchain", "cryptocurrency", "p2p"]
= ["cryptography::cryptocurrencies", "network-programming"]
= "1.82"
[]
= { = "warn", = ['cfg(feature, values("governance", "erlay", "rayon", "wasm-modules"))'] }
[]
= true
= ["--cfg", "docsrs"]
[]
# Protocol / consensus / spec-lock from crates.io (monorepo: checkout siblings for local iteration).
= { = ">=0.1, <1" }
= { = ">=0.1, <1", = true }
= { = ">=0.1, <1", = true, = false }
# crates.io releases use 0.1 semver; sibling [patch.crates-io] path for monorepo work.
# Node requires current MuHash APIs (running-state serde, insert_mut/remove_mut hot path).
= { = ">=0.1, <1" }
# Storage layer - EXACT VERSIONS for security
= { = "=0.34.7", = true }
= { = "=1.4", = true }
= { = "=0.24.0", = true }
# Git-pinned deps: used only where upstream has not cut a crates.io release containing
# the API we need. All are pinned to an exact rev or tag to guarantee reproducibility.
# Policy: upgrade to crates.io as soon as a compatible release ships; never leave
# a git dep on a floating branch. Packagers who disallow git deps should disable the
# relevant feature (e.g. `--no-default-features` for tidesdb).
#
# Pinned rev; build.rs builds libtidesdb from source and links lz4/zstd/snappy (CI installs -dev packages).
= { = "https://github.com/tidesdb/tidesdb-rs.git", = "2c128540b02400a538475d992a122d940eb93da3", = "0.6.7", = true }
# Networking layer - EXACT VERSIONS for security
# Explicit features avoid `full` (smaller graphs, clearer deps). Mirrors actual `tokio::` usage
# (`rt-multi-thread`, `sync`, `time`, `net`, `fs`, `process`, `io-util`, `signal`, test macros).
= { = "=1.48.0", = [
"macros",
"rt",
"rt-multi-thread",
"sync",
"time",
"net",
"io-util",
"fs",
"process",
"signal",
] }
= { = "=0.7.17", = ["codec", "io"] } # Updated for iroh 0.95 compatibility (requires ^0.7.14)
= "=0.3.31" # Updated for iroh 0.95 compatibility (requires ^0.3.31)
# HTTP server - EXACT VERSIONS for security
= "=1.1.0"
= "=0.1.1"
= { = "=1.8.0", = ["server", "http1", "http2"] } # Updated for iroh 0.95 compatibility (hyper-util 0.1.18 requires ^1.8.0)
= { = "=0.1.18", = ["server", "http1", "tokio"] } # Updated for iroh 0.95 compatibility (requires ^0.1.11)
# Serialization - EXACT VERSIONS for security
= { = "=1.0.228", = ["derive"] } # Updated for iroh 0.95 compatibility (requires ^1.0.219)
= "=1.0.108"
= "=0.11.19" # Updated for iroh 0.95 compatibility (requires ^0.11.17)
= "=1.3.3"
= "=1.11.1" # RUSTSEC-2026-0007: Integer overflow in BytesMut::reserve (was 1.10.1)
= { = "=1.6.0", = ["v4"] }
= "=0.8.2"
# Cryptography - use local fork (same as blvm-consensus/blvm-protocol)
= "=0.28"
= "=0.10.9"
= "=0.1.3"
= "=0.4.3"
= "=0.3"
# bindgen (via librocksdb-sys) requires rustc-hash ^2.1; pin must match lockfile/resolver.
= "=2.1.1" # FxHashMap/FxHashSet for disk_utxo hot path (2-3× faster than SipHash)
= { = "=1.8.2", = ["zeroize_derive"] } # ^1.8 required by rustls (iroh); pin patch
# Network utilities
= "=0.6" # For LAN peer discovery
= "=0.3" # Constant-time comparison for token authentication
= "=0.10.3" # Module encryption
= "=0.12.4" # Key derivation for module encryption
# Random number generation for Dandelion++
= "=0.8.5"
# For iroh SecretKey generation in tests (avoids RNG version conflicts)
= "=0.2"
# Directory utilities for Bitcoin Core detection
= "=5.0"
# SmallVec for production optimizations
= { = "=1.15.1", = true, = ["serde", "const_generics"] }
# Multi-consumer channel for prefetch workers
= "=0.5"
# Lower-contention mutex for IBD feeder buffer (validation + feeder hot path)
= "=0.12"
# Address encoding (BIP173/350/351)
= "=0.9"
# Legacy P2PKH/P2SH (Base58Check)
= { = "=0.5", = ["check"] }
# Error handling - EXACT VERSIONS for security
= "=1.0.93"
= "=1.0.69"
# Logging - EXACT VERSIONS for security
= "=0.1.41" # Updated for iroh 0.95 compatibility (requires ^0.1.41)
= { = "=0.3.20", = ["env-filter"] }
# CLI - EXACT VERSIONS for security
= { = "=4.4.11", = ["derive"] }
# Async traits - for transport abstraction
= "=0.1.75"
# Bitflags for transport preference combinations
= "^2.6"
# Memory allocator optimization
# Disabled for Windows cross-compilation (mimalloc linking issues with MinGW)
[]
= { = "=0.1", = false }
= { = "=0.1", = ["extended"] }
# System calls for process sandboxing (Unix)
= { = "=0.28", = ["process", "resource"], = true }
= { = "=0.2", = true }
# lru and rayon come from blvm-protocol when production is enabled
# Concurrent HashMap for IBD v2 (zero lock contention)
= "=6.0"
# System information for memory stats
= "=0.30"
# HTTP client for governance auto-detect / webhooks (feature `governance` only)
= { = "=0.12", = true, = ["json"] }
# Compression for storage optimization (optional feature)
= { = "=0.13", = true }
# FEC (Forward Error Correction) for FIBRE
# FIBRE relay (node `network::fibre`): FEC encode/decode — omit from default builds via `fibre` feature
= { = "=6.0.0", = true }
# FIBRE integration tests only in this crate (`tests/fibre_integration_tests.rs`); blvm-protocol ships its own crc32fast for packet types
= { = "=1.3", = true }
# ZeroMQ for notifications (aliased to avoid conflict with crate::zmq module)
= { = "zmq", = "=0.10" }
# File watcher for module hot-reload on change (optional feature)
= { = "=6.1", = true }
# Miniscript support for script policy compilation and descriptor parsing (optional feature)
= { = "=13.0.0", = true, = ["compiler"] }
# Base64 encoding/decoding for PSBT
= { = "=0.22", = true }
# Regex for range descriptor detection
# ^1.10 (not =1.10): must unify with blvm dev-deps (e.g. predicates → regex 1.12.x).
= { = "1.10", = true }
# Iroh networking (optional feature)
= { = "=0.95", = true }
# WASM: blvm-node defines WasmModuleLoader trait; blvm-sdk implements it.
# blvm-node does NOT depend on blvm-sdk. The binary injects the loader.
# Quinn QUIC transport (optional feature)
= { = "=0.11", = true }
= { = "=0.12", = true }
= { = "=0.23", = true }
# Windows Job Objects for process sandboxing (Windows)
[]
= { = "=0.59", = ["Win32_System_JobObjects", "Win32_System_Threading", "Win32_Foundation", "Win32_Security"] }
# Security Note: Migrated from iroh-net 0.12 to iroh 0.95 to fix vulnerabilities:
# - idna 0.4.0 (RUSTSEC-2024-0421) - FIXED in iroh 0.95
# - ring 0.16.20 (RUSTSEC-2025-0009) - FIXED in iroh 0.95
# - rsa 0.9.8 (RUSTSEC-2023-0071) - FIXED in iroh 0.95
# - paste 1.0.15 (unmaintained) - FIXED in iroh 0.95
# iroh 0.95 transitive stack: `cargo audit` may still flag optional-path crates (e.g. hickory-proto
# RUSTSEC-2026-0118 / RUSTSEC-2026-0119 via DNS resolver) until upstream iroh bumps hickory — see
# `.github/workflows/ci.yml` Run security audit ignores for IDs we accept until then.
[]
# Storage: `database_backend = "auto"` picks RocksDB when the `rocksdb` feature is enabled
# (see `storage/database/mod.rs::default_backend`). Redb is pure-Rust optional: `--features redb`.
# No LevelDB (backends: rocksdb, redb, sled, tidesdb).
# Pure Rust/no C++ compile: `cargo build --no-default-features --features "redb,production,..."`.
= ["sysinfo", "rocksdb", "nix", "libc", "production", "governance", "zmq", "utxo-commitments", "protocol-verification"]
# Note: rocksdb and erlay are mutually exclusive due to clang-sys version conflicts
= ["dep:iroh"]
= ["dep:quinn", "dep:rcgen", "dep:rustls"]
= ["blvm-protocol/utxo-commitments"]
= []
# Block filtering (BIP158)
= []
# Signature operations counting
= []
# FIBRE relay (FEC shards + UDP-style chunks); keeps reed-solomon / test crc32 out of default builds
= ["dep:reed-solomon-erasure", "dep:crc32fast"]
# System information for memory stats (sysinfo is always included)
= []
# Storage backends
= ["dep:sled"]
= ["dep:redb"]
# Note: rocksdb and erlay are mutually exclusive due to clang-sys version conflicts
= ["dep:rocksdb"]
= ["dep:tidesdb"]
# Process sandboxing (Unix)
= ["dep:nix", "dep:libc"]
= ["dep:libc"]
# Rayon parallel iterators (enabled by production)
= []
# Production optimizations (parallel block validation, etc.)
= ["blvm-protocol/production", "dep:blvm-consensus", "dep:smallvec", "rayon", "mimalloc", "libc"]
# Profiling: IBD_PROFILE, PERF, BATCH logs. NOT for production.
= ["blvm-protocol/profile", "dep:blvm-consensus"]
# Privacy relay (Dandelion++) compiled behind feature flag; default OFF
# blvm-spec-lock: #[spec_locked("10.6")] for Orange Paper Dandelion verification
= ["dep:blvm-spec-lock", "blvm-protocol/dandelion"]
# Protocol (10.1) and handshake (10.2) verification
= ["dep:blvm-spec-lock", "blvm-protocol/protocol-verification"]
# CTV (BIP119 CheckTemplateVerify) - passed through from blvm-protocol
= ["blvm-protocol/ctv", "dep:blvm-consensus"]
# Governance (auto-detect Commons server, HTTP client)
= ["dep:reqwest"]
# ZeroMQ notification support (zeromq is always included)
= []
# Memory allocator optimization (mimalloc) - faster than default allocator
# Disabled for Windows cross-compilation (mimalloc linking issues with MinGW)
= []
# JSON logging format for structured logging (production/monitoring)
= []
# Modern REST API (runs alongside JSON-RPC)
= []
# HTTP BIP70 payment protocol support (requires rest-api)
= ["rest-api"]
# Module file watcher for hot-reload on module.toml/config.toml change
= ["dep:notify"]
# WASM module support (load .wasm modules in-process, hotloading)
= []
# Miniscript support for script policy compilation and descriptor parsing
# NOT in default - must be explicitly enabled
# Note: Updated to miniscript 13.0.0 which uses bitcoin 0.32.x with better secp256k1 compatibility
# The secp256k1 patch (below) ensures compatibility with iroh feature
= ["dep:miniscript", "dep:base64", "dep:regex"]
# Storage compression optimizations
= ["dep:zstd"]
= ["dep:zstd"]
= ["dep:zstd"]
# All compression features
= ["block-compression", "utxo-compression", "witness-compression"]
# Erlay (BIP330) transaction relay optimization
# Note: Requires libclang/LLVM for minisketch-rs bindgen compilation
# Erlay is entirely optional - if libclang is not available, simply don't enable this feature
# For CI without libclang: omit the erlay feature entirely
# DISABLED: erlay conflicts with rocksdb due to clang-sys version conflicts
# To enable erlay, uncomment minisketch-rs dependency above and this feature
# erlay = ["dep:minisketch-rs"]
# Security: patch transitive deps via git (crates-io to crates-io patch not allowed)
# RUSTSEC-2026-0037 quinn-proto DoS, RUSTSEC-2026-0009 time stack exhaustion
[]
= { = ">=0.1, <1", = ["test-utils"] }
= { = ">=0.1, <1", = ["test-utils"] }
= "=3.8.1"
= "0.8"
# Module DB / WASM integration tests that used blvm_sdk live under tests/module/ — run them from a
# monorepo checkout with a path dev-dependency, or from blvm-sdk; not required for CI/crates.io.
= "=0.5"
= "=1.4.0"
= "=0.3" # Heap profiling
= "=3.0" # Sequential test execution for database isolation
# Release profile optimizations (mirrors blvm-consensus)
[]
# Production optimizations (mirrors blvm-consensus)
= 3
= false # off: fastest iteration; use thin/fat for production/CI
= 256 # max parallelism
= true # Remove symbols for smaller binaries
= "abort" # Smaller binaries, no unwinding overhead
[]
= 3
# Fast release: opt-level 2 for iteration (~2-3x faster compile)
[]
= "release"
= 2
[]
= 2
# Benchmark profile
[]
= 3
= false
= false
= "thin"
= 16
# Benchmark targets
# Benchmarks have been moved to blvm-bench crate
# See: https://github.com/BTCDecoded/blvm-bench
# Local development: use .cargo/config.toml or [patch.crates-io] in this file to point at sibling repos.
# IMPORTANT: rocksdb and erlay features are mutually exclusive
# Due to clang-sys version conflicts, you cannot enable both features simultaneously.
# To use rocksdb, you must exclude erlay from your build:
# cargo build --features rocksdb --no-default-features
# Then manually add back other needed features (e.g., --features rocksdb,production)
# The build script (build.rs) will catch this conflict at build time.
# Examples
[[]]
= "electrum-integration"
= "examples/electrum-integration.rs"
[[]]
= "wallet-integration"
= "examples/wallet-integration.rs"
[[]]
= "verify_tidesdb"
= "examples/verify_tidesdb.rs"
= ["tidesdb"]
# Tools
[[]]
= "convert-bitcoin-core-config"
= "tools/convert-bitcoin-core-config.rs"
[[]]
= "migrate-bitcoin-core"
= "tools/migrate-bitcoin-core.rs"
= ["rocksdb"]
# secp256k1 now direct path dep above; no patch needed