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")]
9#[cfg_attr(iroh_blobs_docsrs, doc(cfg(feature = "fs-store")))]
10pub mod fs;
11mod gc;
12pub mod mem;
13pub mod readonly_mem;
14mod test;
15pub(crate) mod util;
16
17/// Block size used by iroh, 2^4*1024 = 16KiB
18pub const IROH_BLOCK_SIZE: BlockSize = BlockSize::from_chunk_log(4);
19
20pub use gc::{GcConfig, ProtectCb, ProtectOutcome};