Registry / utility / bitcoinleveldb-util

bitcoinleveldb-util

JSON →
library0.1.19rscratesunverified

Low-level utilities for bitcoin-rs/bitcoinleveldb providing C++-style non-dropping singletons and destructor control via DoNotDestruct and NoDestructor<T>.

# Cargo.toml [dependencies] bitcoinleveldb-util = "0.1.19"
INSTALL
IMPORT
SIG · BITCOINLEVELDB-UTI
B
bitcoinleveldb-util
utilityrustv0.1.19
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NoDestructor
use bitcoinleveldb_util::NoDestructor;

Create a value that will not have its destructor called.

use bitcoinleveldb_util::NoDestructor; fn main() { let val = NoDestructor::new(42); println!("{}", *val); }
Debug
Known issues
gotchaNoDestructor prevents Rust's normal drop, which can cause resource leaks if not used carefully.
fix
Ensure that any resources managed by the inner value are handled manually or are not required to be dropped.
affects: >=0.1.0
Upgrade
Version history
0.1.19latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
bitcoinleveldb-util — cargo add bitcoinleveldb-util · libregistry