iroh_blobs/store/mod.rs
1//! Store implementations
2//!
3//! Use the [`mem`] store for sharing a small amount of mutable data,
4//! the [`readonly_mem`] store for sharing static data, and the [`fs`] store
5//! for when you want to efficiently share more than the available memory and
6//! have access to a writeable filesystem.
7use bao_tree::BlockSize;
8pub mod fs;
9pub mod mem;
10pub mod readonly_mem;
11mod test;
12pub(crate) mod util;
13
14use crate::hash::{Hash, HashAndFormat};
15
16/// Block size used by iroh, 2^4*1024 = 16KiB
17pub const IROH_BLOCK_SIZE: BlockSize = BlockSize::from_chunk_log(4);