heaplet
heaplet is an in-process, in-memory data structure library for Rust.
It provides a single Store that maps keys to multiple native data structures
(strings, hashes, sets, lists, deques, and sorted sets) through a typed, SDK-style API.
There is no server, no protocol, no networking — everything runs inside your process.
Why heaplet?
heaplet is designed for situations where you want:
- Redis-like data structures without running Redis Server
- a type-safe, Rust-native API (no stringly-typed commands)
- a small, embeddable store for caches, queues, rankings, or ephemeral state
- predictable behavior with no background threads or services
Features
- Unified key space with multiple data structures
- Lazy key-level TTL support
- Optional blocking list operations
- Cursor-based scan APIs
- Pluggable value codec (default:
bincode) - Fully in-process and synchronous
Installation
[]
= "0.1"
Quick Example
use Store;
API Design
heaplet exposes structured views instead of flat commands.
Each key is bound to a data-structure-specific handle:
use Store;
This provides:
- strong typing
- better IDE discoverability
- clear separation between data structures
Full API details are available in the generated documentation.
Documentation
- API docs: https://docs.rs/heaplet
- Source code is fully documented with rustdoc comments
Non-Goals
- No Redis protocol compatibility
- No persistence or replication
- No distributed operation
heaplet is intentionally local and embedded.
License
MIT