Skip to main content

Crate fallow_report_protocol

Crate fallow_report_protocol 

Source
Expand description

The language-neutral report contract of the fallow command-line tools.

This crate holds the types that every fallow report shares: the JSON error document, the verdict of a gate, and the map of gate verdicts. A tool that emits a fallow report depends on this crate, so two tools cannot write a different shape for the same member.

The crate depends on no other fallow crate and on no JavaScript type. The schema feature derives schemars::JsonSchema for each type.

The crate version follows the fallow release. The wire version is REPORT_PROTOCOL_VERSION.

User documentation is on fallow report.

Modules§

exit_code
The process exit codes of the report contract.

Structs§

ErrorOutput
Structured JSON error that a tool writes to stdout when --format json is active and a command fails. It has no kind discriminator. The required error: true member separates it from a success envelope, which carries a kind. The error document is one of the root branches of the output schema. A consumer that passes --format json and sees a non-zero exit code parses this shape from stdout.
GateFile
One file that a file-judging gate names, with the reason that the gate counted it.
GateOutcome
One gate’s verdict on one run.
GateOutcomes
The verdict of every gate that a run evaluated, keyed by gate name.

Enums§

GateFileReason
Why a file counts for a parse gate, other than a parser error.
GateStatus
What a gate concluded on this run.

Constants§

REPORT_PROTOCOL_VERSION
The version of the wire contract that this crate describes.