Skip to main content

store_io_format/
lib.rs

1//! # store-io-format
2//!
3//! The on-disk formats of store-io: the CRC-32C checksum, the A/B slot header
4//! that every piece of store-io metadata is written with, and the codecs for
5//! the payloads those slots carry.
6//!
7//! Everything here is pure: no I/O, no allocation, no global state. Every
8//! decoder treats its input as hostile and checks every bound before
9//! reading; tests flip every bit and tear every byte boundary of a slot, and
10//! fuzz targets are planned. The byte-level specification is `docs/FORMAT.md` in the
11//! repository.
12
13#![deny(warnings)]
14#![cfg_attr(
15    not(any(target_arch = "x86_64", target_arch = "aarch64")),
16    forbid(unsafe_code)
17)]
18
19pub mod codec;
20pub mod crc32c;
21pub mod fill;
22pub mod footprint;
23pub mod judge;
24pub mod meta;
25pub mod meta2;
26pub mod pair;
27pub mod slot;