Skip to main content

Crate copybook_cli_determinism

Crate copybook_cli_determinism 

Source
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§

CommonDeterminismArgs
Shared determinism arguments.
DecodeDeterminismArgs
Decode command arguments.
DeterminismCommand
Determinism command façade for CLI surface.
DeterminismRun
Result of running a determinism command execution.
EncodeDeterminismArgs
Encode command arguments.
RoundTripDeterminismArgs
Round-trip command arguments.

Enums§

DeterminismCheckMode
Mode of determinism checking (decode-only, encode-only, or full round-trip).
DeterminismMode
Determinism check modes.
DeterminismVerdict
Executable verdict from determinism checks.
OutputFormat
Available output rendering modes.

Constants§

BLAKE3_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 DecodeOptions from shared arguments.
build_encode_options
Build EncodeOptions from 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§

DeterminismModeCommand
Backward-compatible alias retained for callers importing the command mode by name.