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

Download history 11/week @ 2026-03-03 14/week @ 2026-03-31 1/week @ 2026-04-07 73/week @ 2026-04-14 36/week @ 2026-04-21 42/week @ 2026-04-28 2/week @ 2026-05-05 5/week @ 2026-05-12 320/week @ 2026-05-19 6/week @ 2026-05-26 31/week @ 2026-06-02 171/week @ 2026-06-09

530 downloads per month
Used in 4 crates

Apache-2.0

305KB
8K SLoC

t4

t4 is a local, embedded, high-performance object store.

Features

  • Performance, correctness, and ergonomics, pick three.
  • io_uring for 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