guts-storage
Content-addressed storage for Git objects in the Guts platform.
Overview
This crate provides storage backends for Git objects (blobs, trees, commits):
- Memory backend - In-memory storage for testing
- RocksDB backend - Persistent storage with LRU caching
Features
- Content-addressed storage (SHA-1 based)
- Automatic deduplication
- Optional persistent storage with RocksDB
- LRU cache for frequently accessed objects
Usage
use ;
// Create in-memory storage
let storage = new;
// Store and retrieve objects
let id = storage.store_blob?;
let blob = storage.get_object?;
Features Flags
memory(default) - In-memory storage backendrocksdb-backend- RocksDB persistent storagefull- All features
Part of Guts
This crate is part of Guts, a decentralized, censorship-resistant alternative to GitHub built on BFT consensus.
License
MIT OR Apache-2.0