Registry / database / hash-db

hash-db

JSON →
library0.16.0rscratesunverified

Provides a trait for hash-keyed databases, enabling key-value storage with hashed keys.

# Cargo.toml [dependencies] hash-db = "0.16.0"
INSTALL
IMPORT
SIG · HASH-DB
H
hash-db
databaserustv0.16.0
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.

HashDB
use hash_db::HashDB;

Define a custom hasher and use the HashDB trait.

use hash_db::HashDB; use hash_db::Hasher; struct SimpleHasher; impl Hasher for SimpleHasher { type Out = u64; fn hash(&self, data: &[u8]) -> Self::Out { // Simple hash for demonstration data.len() as u64 } } fn main() { // Example usage would require a concrete HashDB implementation println!("HashDB trait available"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.16.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
hash-db — cargo add hash-db · libregistry