Skip to main content

radbeeper/
lib.rs

1// SPDX-License-Identifier: MIT
2// Copyright (c) 2026 Paul Richeson
3//
4// The crate as a library, so that the parts with an opinion about a file
5// format can be tested from outside the binary.
6//
7// WHY THIS EXISTS. The log format is owned by the Python program and being
8// ported here one piece at a time, and the only thing that makes such a port
9// safe is being able to run both against the same input and diff the bytes.
10// That needs a Rust side something else can call: `examples/format_oracle.rs`
11// prints what this crate would write, `tests/test_differential.py` prints what
12// the Python would write, and the test is that they are the same characters.
13pub mod analysis;
14pub mod clock;
15pub mod entropy;
16pub mod history;
17pub mod log;
18pub mod sha256;