Awesome Open Source
Awesome Open Source

Tests codecov


acid-store is a library for secure, deduplicated, transactional, and verifiable data storage.

This library provides high-level abstractions for data storage over a number of storage backends. The goal is to decouple how you access your data from where you store it. You can access your data as an object store, a virtual file system, a persistent collection, or a content-addressable storage, regardless of where the data is stored. Out of the box, this library supports the local file system, SQLite, Redis, Amazon S3, SFTP, and many cloud providers as storage backends. Storage backends are easy to implement, and this library builds on top of them to provide features like encryption, compression, deduplication, locking, and atomic transactions.

For details and examples, see the documentation.

This project is still experimental; it experiences frequent breaking API changes and requires more testing. This project is not ready for use in production environments. Testers are always appreciated, but please remember to back up your data! Also keep in mind that this code has not been audited for security.


  • Optional encryption of all data and metadata using XChaCha20-Poly1305 and Argon2, powered by libsodium
  • Optional compression using LZ4
  • Optional content-based deduplication using the ZPAQ chunking algorithm
  • Supports packing data into fixed-size blocks to avoid metadata leakage
  • Integrity checking of data and metadata using checksums and (if encryption is enabled) AEAD
  • Transactional operations providing atomicity, consistency, isolation, and durability (ACID)
  • Two-phase locking protects against concurrent access from multiple clients
  • Copy-on-write semantics
  • New storage backends are easy to implement


This library provides the following abstractions for data storage.

  • An object store which maps keys to seekable binary blobs
  • A virtual file system which supports file metadata, special files, sparse files, hard links, importing and exporting files to the local OS file system, and being mounted via FUSE
  • A persistent, heterogeneous, map-like collection
  • An object store with support for content versioning
  • A content-addressable storage which allows for accessing data by its cryptographic hash


This library provides the following storage backends out of the box.

  • Local file system directory
  • SQLite
  • Redis
  • Amazon S3
  • SFTP
  • Cloud storage via rclone
  • In-Memory


The following results show read and write speeds for an in-memory repository with various configurations. An in-memory repository is used to make benchmark results more consistent between runs and between machines. You can run the benchmarks yourself by running cargo bench --all-features.


Spec Value
Processor Ryzen 5 1600x
Memory 32 GB (3200MHz)
OS Linux 5.11


Chunking Packing Encryption Compression Read Write
Fixed None None None 6090 MiB/s 1920 MiB/s
ZPAQ None None None 2670 MiB/s 520 MiB/s
Fixed Fixed XChaCha20-Poly1305 None 870 MiB/s 610 MiB/s
ZPAQ Fixed XChaCha20-Poly1305 None 840 MiB/s 300 MiB/s
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Rust (59,742
Redis (23,916
Encryption (11,916
Sqlite (9,950
Filesystem (7,654
S3 (6,212
Compression (5,704
Fuse (2,423
Sftp (1,426
Transactional (982
Deduplication (635
Rclone (507
Data Storage (481
Acid (33
Atomicity (17