4 releases
Uses new Rust 2024
| 0.1.7 | May 22, 2026 |
|---|---|
| 0.1.6 | Apr 29, 2026 |
| 0.1.5 | Apr 29, 2026 |
| 0.1.3 | Mar 3, 2026 |
#327 in Embedded development
530 downloads per month
Used in 4 crates
305KB
8K
SLoC
t4
t4 is a local, embedded, high-performance object store.
Features
- Performance, correctness, and ergonomics, pick three.
io_uringfor all I/O, scale to modern SSDs.- Deterministic, predictable performance, one request is one I/O.
- Runtime-agnostic async API.
Usage
Values are written and read by key. Reads support full-value and range access.
let store = t4::mount("your-data.t4").await?;
store.put(b"a.txt", b"Hello, world!").await?;
let content = store.get(b"a.txt").await?;
assert_eq!(content, b"Hello, world!");
let slice = store.get_range(b"a.txt", 7, 5).await?;
assert_eq!(slice, b"world");
let removed = store.remove(b"a.txt").await?;
assert!(removed);
Limitations
File name is up to 256 bytes, file size is up to 4 GB.
Vision
t4 will be the ultimate and only file system you need.
Dependencies
~6–8.5MB
~171K SLoC