Skip to main content

sail_api/
lib.rs

1//! The embeddable API, the daemon wire protocol and the structured output
2//! schema.
3//!
4//! - [`protocol`] and [`client`]: the daemon protocol and the thin client
5//!   the shim uses (ADR 0011);
6//! - [`output`]: the `sail verify --output json` document (ADR 0014);
7//! - [`schema`]: a small JSON Schema checker for that document's schema;
8//! - [`policy`]: the serving policy for cached `unknown` answers (ADR 0009);
9//! - [`stamp`]: complete stat stamps and the cross-run settle rule (ADR 0082).
10#![forbid(unsafe_code)]
11
12/// Sail's version, as `sail --version` and every report state it:
13/// `SAIL_VERSION` when the build sets it (`scripts/release.sh` passes the
14/// release version, for example `0.1.0-rc.1`), else the crate version.
15pub const VERSION: &str = match option_env!("SAIL_VERSION") {
16    Some(version) if !version.is_empty() => version,
17    _ => env!("CARGO_PKG_VERSION"),
18};
19
20/// Checked positive Verus report and requested-scope authority.
21pub mod acceptance;
22mod acceptance_sort;
23/// Evidence-strength vocabulary and whole-run proof rules shared by requirement attribution.
24pub mod assurance;
25pub mod attribution;
26pub mod bounded;
27pub mod campaign;
28pub mod evidence;
29pub mod health;
30pub mod jobs;
31pub mod output;
32pub mod policy;
33pub mod preparation;
34pub mod project;
35pub mod proof;
36pub mod protocol;
37pub mod repair;
38/// Internal checked construction of a package report's verification mode.
39#[doc(hidden)]
40pub mod request_mode;
41pub mod runtime;
42pub mod schema;
43pub mod stamp;
44pub mod temporal;
45
46#[cfg(unix)]
47pub mod client;
48
49pub mod counterexample;