Overview
A simple, humane, typed key-value storage solution for Rust. This crate supports multiple backend engines with varying guarantees, optimized for use within the AIngle distributed systems framework.
Features
- Multiple backends - LMDB for performance, SafeMode for reliability
- Type-safe API - Strongly typed keys and values
- Concurrent access - Multi-reader, single-writer transactions
- Crash-safe - ACID-compliant storage with durability guarantees
- Compact - Efficient memory-mapped I/O
Installation
[]
= "0.1"
Quick Start
use ;
use Path;
Backend Engines
| Backend | Use Case | Characteristics |
|---|---|---|
| LMDB | High performance | Memory-mapped, fast reads |
| SafeMode | Reliability | In-memory with sync writes |
| SQLite | Portability | Planned for future release |
SafeMode Backend
For production environments requiring maximum reliability:
use ;
use ;
let mut manager = singleton.write?;
let env = manager.get_or_create?;
Features Flags
| Feature | Description | Default |
|---|---|---|
db-dup-sort |
Multiple values per key | Yes |
db-int-key |
Integer key optimizations | Yes |
backtrace |
Error backtraces | No |
Build & Test
# Build
# Run tests
# Generate documentation
# Run examples
Part of AIngle
This crate is part of the AIngle ecosystem - a Semantic DAG framework for IoT and distributed AI applications.
License
Licensed under the Apache License, Version 2.0. See LICENSE for details.