fallow_report_protocol/lib.rs
1//! The language-neutral report contract of the fallow command-line tools.
2//!
3//! This crate holds the types that every fallow report shares: the JSON error
4//! document and the verdict of a gate. A tool that emits a fallow report
5//! depends on this crate, so two tools cannot write a different shape for the
6//! same member.
7//!
8//! The crate depends on no other fallow crate and on no JavaScript type. The
9//! `schema` feature derives `schemars::JsonSchema` for each type.
10//!
11//! The crate version follows the fallow release. The wire version is
12//! [`REPORT_PROTOCOL_VERSION`].
13#![warn(missing_docs)]
14#![cfg_attr(
15 test,
16 allow(
17 clippy::expect_used,
18 reason = "tests use expect to keep serialization assertions concise"
19 )
20)]
21
22mod error_envelope;
23pub mod exit_code;
24mod gate;
25
26pub use error_envelope::ErrorOutput;
27pub use gate::{GateFile, GateFileReason, GateOutcome, GateStatus};
28
29/// The version of the wire contract that this crate describes.
30///
31/// A change that removes a member or changes the type of a member increments
32/// this value. An additive optional member does not change it.
33///
34/// No fallow report writes this value yet. It is for tools that consume this
35/// crate.
36pub const REPORT_PROTOCOL_VERSION: u32 = 1;