17 releases (2 stable)
Uses new Rust 2024
| new 5.3.0-pre.4 | Mar 24, 2026 |
|---|---|
| 5.2.1 | Feb 10, 2026 |
| 5.1.0 | Oct 8, 2025 |
| 1.0.0-rc.5 | Feb 9, 2024 |
| 0.0.5 | Sep 2, 2019 |
#31 in #tari
Used in 12 crates
(4 directly)
72KB
1K
SLoC
Tari Storage
This crate is part of the Tari Cryptocurrency project.
An abstraction layer for persistent key-value storage. The Tari domain layer classes should only make use of these traits and objects and let the underlying implementations handle the details.
DataStore
Provides a general CRUD behaviour of Key-Value Store implementations. Datastore is agnostic of the underlying
implementation.
LMDB
Currently, Tari supports LMDB for local disk persistence.
Use LMDBBuilder to open/create a new database.
# use tari_storage::lmdb::LMDBBuilder;
let mut store = LMDBBuilder::new()
.set_path("/tmp/")
.set_mapsize(500)
.add_database("db1")
.add_database("db2")
.build()
.unwrap();
Dependencies
~1.2–1.9MB
~39K SLoC