termproof 0.3.4

Evidence-first verification for TUI and terminal applications: recipe model, schema, steps, assertions, orchestration, terminal sessions and the evidence pipeline
Documentation
//! Evidence pipeline: rendering, reports, video, baselines, diff,
//! and cache.
//!
//! Every SVG still is drawn by
//! [`screen_svg`](crate::terminal::attributed::screen_svg), so those stills
//! share a visual language and the entry points differ only in what they take:
//! [`render_svg`] takes plain text, [`screenshot`] takes an attributed grid.
//!
//! Two things sit outside that, and both are deliberate.
//! [`render_png`] bundles no font, so it paints a block per occupied cell
//! rather than glyphs; it shares the canvas, grid and palette and nothing
//! else, and it is the only way to a PNG without `rsvg-convert`.
//! [`AggFfmpegBackend`] shells out to `agg`, which brings its own fonts and
//! palette, and it is still the default video backend — so a video from a
//! default run does not match the stills beside it. [`cast_video`] is the
//! backend that does draw frames through
//! [`screen_svg`](crate::terminal::attributed::screen_svg) — matching a still
//! in appearance, though not always in column layout, since cast playback
//! measures widths with a different `unicode-width` major.
//!
//! [`render`]'s module docs carry the full table.

pub mod cast_video;
pub mod collector;
pub mod dedup;
pub mod diff;
pub mod render;
pub mod report;
pub mod screenshot;
pub mod uploader;
pub mod video;

pub use collector::{
    CaptureKind, CapturedStep, EvidenceCollector, EvidenceManifest, EvidencePublisher,
    PublishedStep, RawOutput, ReusedFrom, RunIdentity, ScreenCapture, ScreenSource,
    EVIDENCE_MANIFEST_VERSION,
};
pub use diff::apply_visual_diff;
pub use render::{normalize_text, render_by_extension, render_png, render_svg};
// `generate_junit` is re-exported from [`crate::junit`], where it moved in #34
// so that the `junit` feature costs `quick-junit` and nothing else. This keeps
// `evidence::generate_junit` resolving where it always did.
#[cfg(feature = "junit")]
pub use crate::junit::generate_junit;
pub use report::{
    generate_markdown, generate_markdown_single, validate_duration, validate_recipe_json,
};
pub use video::{
    render_mp4, render_mp4_or_fail, resolve_agg, resolve_ffmpeg, AggFfmpegBackend, VideoBackend,
    VideoError,
};