verirun-core
verirun-core is the pure deterministic core of verirun. It implements the JSON data model, a strict recursive descent parser with byte-offset diagnostics, RFC 8785 (JCS) canonical encoding over the safe integer domain, domain-separated SHA-256 digest framing behind a streaming hasher trait, task graph validation, sandbox relative path rules, and Merkle manifest construction and diffing.
This crate depends strictly on the Rust standard library and forbids unsafe code. It performs no filesystem, process, network, clock, or randomness access. Concrete hash implementations and storage live in verirun-store.
Modules
valueprovides the JSON value representation used by canonical encoding.parseparses byte slices strictly while rejecting duplicate keys, lone surrogates, and excessive nesting with byte offsets.canonicalencodes values under RFC 8785 with UTF-16 property sorting and ECMA-262 number formatting.digestdefinesDigest,DomainTag,StreamingHasher,HasherFactory, and Pattern S and Pattern T tuple framing.casprovides pure path derivation, temporary file naming, put phase types, and garbage collection reachability planning.dagvalidatesTaskSpecgraphs in a fixed check order and computes deterministic Kahn topological schedules.pathsvalidates and normalizes sandbox relative paths without touching the host filesystem.manifestbuilds, encodes, parses, verifies, and diffsManifest,TaskRecord, andArtifactRecordvalues.errordefines all typed domain errors with full diagnostic context.
Usage
use ;
let value = parse.expect;
let bytes = to_vec.expect;
assert_eq!;
Documentation
Licence
Dual licensed under the MIT licence and the Apache License 2.0.