Expand description
Determinism command execution for copybook CLI workflows.
This crate focuses on one responsibility: parsing CLI command arguments and producing formatted determinism output for decode/encode/round-trip checks.
Structs§
- Common
Determinism Args - Shared determinism arguments.
- Decode
Determinism Args - Decode command arguments.
- Determinism
Command - Determinism command façade for CLI surface.
- Determinism
Run - Result of running a determinism command execution.
- Encode
Determinism Args - Encode command arguments.
- Round
Trip Determinism Args - Round-trip command arguments.
Enums§
- Determinism
Check Mode - Mode of determinism checking (decode-only, encode-only, or full round-trip).
- Determinism
Mode - Determinism check modes.
- Determinism
Verdict - Executable verdict from determinism checks.
- Output
Format - Available output rendering modes.
Constants§
- BLAK
E3_ HEX_ LEN - Hex-encoded BLAKE3 digest length in characters.
- DEFAULT_
MAX_ DIFFS - Default cap used when collecting byte-level differences.
Functions§
- build_
decode_ options - Build
DecodeOptionsfrom shared arguments. - build_
encode_ options - Build
EncodeOptionsfrom shared arguments. - load_
schema - Load and parse schema from a file or stdin.
- render_
human_ result - Create human-readable output string.
- render_
json_ result - Create JSON formatted output string.
- run
- Execute a determinism subcommand and return output plus verdict.
- truncate_
hash - Truncate BLAKE3 hash for human output.
Type Aliases§
- Determinism
Mode Command - Backward-compatible alias retained for callers importing the command mode by name.