rstr
rstr is a library for managing a content-addressable blob store.
Examples
Add files or directories to the blob store:
use ;
use ;
let blob_store = new.unwrap;
let n_threads: u8 = 8;
let : = blob_store.add_files;
let blob_refs: = blob_refs_with_paths.into_iter.map.collect;
Retrieve a blob from the blob store
use ;
let blob_store = new.unwrap;
// Retrieve a blob from the blob store
let reference = "f29bc64a9d3732b4b9035125fdb3285f5b6455778edca72414671e0ca3b2e0de";
let blob_ref = new.unwrap;
assert!;
// Get the blob's content
let content = blob_store.get.unwrap;
// Get the blob's metadata
let metadata = blob_store.metadata.unwrap;
assert_eq!;
assert_eq!;