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 campaign;
27pub mod evidence;
28pub mod health;
29pub mod jobs;
30pub mod output;
31pub mod policy;
32pub mod preparation;
33pub mod project;
34pub mod proof;
35pub mod protocol;
36pub mod repair;
37/// Internal checked construction of a package report's verification mode.
38#[doc(hidden)]
39pub mod request_mode;
40pub mod runtime;
41pub mod schema;
42pub mod stamp;
43pub mod temporal;
44
45#[cfg(unix)]
46pub mod client;
47
48pub mod counterexample;