perishables-core 0.1.0

Deterministic trust-layer checks for Open Knowledge Format bundles. Tier recompute, verification currency, supersession chains, freshness, provenance, and source drift.
Documentation
  • Coverage
  • 100%
    101 out of 101 items documented2 out of 24 items with examples
  • Size
  • Source code size: 110.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • david-engelmann/perishables
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • david-engelmann

perishables-core

perishables-core is the zero-dependency Rust library that checks whether the trust claims inside an Open Knowledge Format bundle hold at a pinned instant in time.

Guarantees

  • Zero external dependencies, relying strictly on the Rust standard library.
  • Zero ambient clock reads, taking every instant from an explicit AuditClock.
  • Zero mutations, reading bundle files in sorted path order without writing to disk.
  • Stable locked interface for downstream upkeep engines through recompute_tier, check_currency, walk_supersession, and check_supersession.

Usage

use perishables_core::{AuditClock, Bundle, check_currency, check_supersession, recompute_tier};

let clock = AuditClock::parse("2026-11-20").expect("valid date");
let bundle = Bundle::from_concepts(Vec::new());
let currency_findings = check_currency(&bundle, &clock);
let chain_findings = check_supersession(&bundle);
assert!(currency_findings.is_empty());
assert!(chain_findings.is_empty());

Documentation

License

Licensed under either of MIT or Apache License, Version 2.0 at your option.