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;
8#[cfg(feature = "fs-store")]
9pub mod fs;
10pub mod mem;
11pub mod readonly_mem;
12mod test;
13pub(crate) mod util;
14
15/// Block size used by iroh, 2^4*1024 = 16KiB
16pub const IROH_BLOCK_SIZE: BlockSize = BlockSize::from_chunk_log(4);