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 experimental! ⚠
This project experiences frequent breaking API changes and hasn't been tested thoroughly. This project is not ready for use in production environments. Please remember to back up your data if you choose to use this library. Also keep in mind that this code has not been audited for security.
This library provides the following abstractions for data storage.
This library provides the following storage backends out of the box.
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 --features 'encryption'
.
| Spec | Value | | --------- | -------------------- | | Processor | Ryzen 5 1600x | | Memory | 32 GB DDR4 (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 |
The last two stable Rust releases are supported. Older releases may or may not be supported as well.
The MSRV will only be increased when necessary to take advantage of new Rust features—not every time there is a new Rust release. An increase in the MSRV will be accompanied by a minor semver bump if >=1.0.0 or a patch semver bump if <1.0.0.
This policy was added with v0.13.0.
Prior to version 1.0.0, breaking changes will be accompanied by a minor version bump, and new features and bug fixes will be accompanied by a patch version bump. The semantics of minor vs patch versions <1.0.0 is unspecified in the semver spec.
This policy was added with v0.13.0.
Here are some similar projects to check out:
Copyright © 2019-2023 Wren Powell
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.