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/// Requirement-aware evidence views with explicit scope, strength and establishment.
24pub mod assurance;
25pub mod evidence;
26pub mod jobs;
27pub mod literal_witness;
28pub mod mutation;
29pub mod output;
30pub mod policy;
31pub mod preparation;
32pub mod project;
33pub mod proof;
34pub mod protocol;
35pub mod repair;
36/// Internal checked construction of a package report's verification mode.
37#[doc(hidden)]
38pub mod request_mode;
39pub mod runtime;
40pub mod schema;
41pub mod stamp;
42pub mod temporal;
43
44#[cfg(unix)]
45pub mod client;
46
47/// Neutral source job requests and source-bound contract evidence.
48pub mod contracts;