Skip to main content

Crate midnight_storage_core

Crate midnight_storage_core 

Source
Expand description

Merkle-ized data structures and persistent disk storage.

This crate provides storage primitives, primarily maps, for use in larger data structures. It also exposes its deduplicated memory arena, Arena, and pointers within it, Sp.

Re-exports§

pub use storable::Storable;
pub use storable::WellBehavedHasher;
pub use storage::Storage;

Modules§

arena
An Arena for storing Merkle-ized data structures in memory, persisting them to disk, and reloading them from disk.
backend
A storage layer that intermediates between the in-memory Arena and the persistent database, managing reference counts for the Merkle-ized DAGs we store in the DB, and providing a caching layer.
db
A database of content-addressed DAG nodes.
storable
A trait defining a Storable object, which can be assembled into a tree.
storage
Traits for defining new storage mechanisms

Type Aliases§

DefaultDB
The default database.
DefaultHasher
The default storage mechanism.

Derive Macros§

Storable
#[derive(Storable)] macro.