Skip to main content

verirun_core/
lib.rs

1//! verirun-core: the deterministic core of verirun.
2//!
3//! This crate is strictly standard-library only (DECISIONS.md Q5). It does
4//! no filesystem, process, network, clock, or randomness access. Every
5//! behaviour that can influence a digest lives here as pure computation
6//! over bytes and values handed to it by adapter crates.
7//!
8//! Module map (docs/ARCHITECTURE.md section 2.1):
9//!
10//! - [`value`]: the JSON value model canonicalization operates on.
11//! - [`parse`]: the strict JSON parser. Duplicate keys, malformed
12//!   numbers, lone surrogates, and nesting past the depth limit are all
13//!   rejected with byte offsets.
14//! - [`canonical`]: the RFC 8785 (JCS) canonical encoder, including the
15//!   ECMAScript number layout over the value-based safe-integer domain.
16//! - [`digest`]: digest framing, domain separation, the
17//!   [`digest::StreamingHasher`] and [`digest::HasherFactory`] seam, and
18//!   the execution tuple encoding.
19//! - [`cas`]: content-addressed store contracts. Path derivation and
20//!   temporary file naming as pure functions, plus the put phase model.
21//! - [`dag`]: task specifications, graph validation in the fixed order
22//!   of section 7.1, and Kahn ordering.
23//! - [`paths`]: sandbox relative path validation (section 8.4).
24//! - [`manifest`]: task records, manifests, and the Merkle construction
25//!   of section 9.
26//! - [`error`]: all core error types, each carrying diagnostic context.
27
28#![forbid(unsafe_code)]
29#![warn(missing_docs)]
30
31pub mod canonical;
32pub mod cas;
33pub mod dag;
34pub mod digest;
35pub mod error;
36pub mod manifest;
37pub mod parse;
38pub mod paths;
39pub mod value;