Skip to main content

xet_core_structures/
lib.rs

1//! Core data structures for the Hugging Face Xet storage system.
2//!
3//! Provides [`merklehash::MerkleHash`] (256-bit content-addressed hashes),
4//! [`metadata_shard`] (compact shard format mapping file ranges to Xorb
5//! chunks), and [`xorb_object`] (content-addressed storage objects with
6//! byte-grouping compression).
7
8#![cfg_attr(feature = "strict", deny(warnings))]
9
10pub mod error;
11pub use error::CoreError;
12
13pub mod data_structures;
14pub mod merklehash;
15pub mod metadata_shard;
16pub mod utils;
17pub mod xorb_object;
18
19// Re-export commonly used items at the crate root for convenience
20pub use data_structures::{MerkleHashMap, PassThroughHashMap, TruncatedMerkleHashMap, U64HashExtractable};
21pub use utils::{ExpWeightedMovingAvg, serialization_utils};