#storage #content-addressable #rust

focuson_cas

A content-addressable storage library implemented in Rust

1 unstable release

0.0.1 Apr 25, 2024

#25 in #content-addressable

Download history 156/week @ 2024-04-25

156 downloads per month

MIT license

10KB
161 lines

Focuson CAS Library

The Focuson CAS (Content Addressable Storage) Library provides a robust and efficient way to store and retrieve data based on content-derived identifiers. This Rust library includes a FileSystemCAS implementation for file system storage and StringStorage extensions for convenient string data handling.

Features

  • ContentAddressableStorage: A trait that defines the interface for content-addressable storage
  • FileSystemCAS: Manages data storage in a file system, ensuring that data is stored and retrieved based on content-derived identifiers
  • StringStorage: A trait extension that simplifies storing and retrieving string data. It automatically handles conversion to and from bytes for storage.

Getting Started

Prerequisites

Ensure you have Rust and Cargo installed on your machine. Visit rust-lang.org to install them if you haven't already.

Installation

Add this to your Cargo.toml:

[dependencies]
focuson_cas = "0.1.0"

Dependencies

~2–11MB
~119K SLoC