Something went wrong. Try again.
STreaming ARchive format: simpler, stricter, smaller than CARs for a subset of use-cases.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253//! Reference implementation of the STAR-lite archive format for atproto//! repositories.//!//! See `README.md` (also the format spec) and the IETF draft//! [draft-holmgren-at-repository][spec] for full background.//!//! Top-level capabilities://!//! - [`encode_archive`] — write a kind `C` archive from a [`Commit`] and a//! sorted iterator of `(key, record)` pairs into any [`std::io::Write`].//! - [`encode_space_archive`] — write a kind `L` (permissioned space repo)//! archive, deriving the LtHash commitment from the entries.//! - [`Reader`] / [`Writer`] — streaming STAR-lite parser/serializer.//! - [`verify_commit_archive`] / [`verify_space_archive`] — full-archive//! verification when you know the kind. [`verify_archive`] handles either.//! No disk usage.//! - [`star_lite_to_car`] / [`car_to_star_lite`] — bidirectional conversion.//! - [`CarBuilder`] — lower-level builder for callers who already have an//! iterator of `(key, record)` pairs (e.g. driving from a different MST//! walker).//!//! Atproto repo primitives (signed-commit parsing, MST construction, CARv1//! framing) live in the companion [`star_repo`] crate; this crate//! re-exports the most commonly used items below.//!//! [spec]: https://www.ietf.org/archive/id/draft-holmgren-at-repository-01.txt
pub mod convert;pub mod encode;pub mod error;pub mod header;pub mod mst;pub mod reader;pub mod storage;pub mod verify;pub mod writer;
pub use convert::{CarBuilder, ConvertOptions, car_to_star_lite, star_lite_to_car};pub use encode::{ ArchiveBuilder, SpaceArchiveBuilder, encode_archive, encode_space_archive, space_commitment,};pub use error::{Error, Result};pub use header::{Commitment, Kind, Version};pub use mst::VerifyBackend;pub use reader::{Entry, Limits, Reader};pub use star_repo::Cid;pub use star_repo::{Commit, CommitInfo, LtHash, SpaceMeta, commit, lthash, space};pub use verify::{ Verified, VerifiedCommit, VerifiedSpaceMeta, verify_archive, verify_commit_archive, verify_space_archive,};pub use writer::Writer;