sail-api 0.3.1

Embeddable library API, daemon wire protocol and structured output schema
Documentation
//! The embeddable API, the daemon wire protocol and the structured output
//! schema.
//!
//! - [`protocol`] and [`client`]: the daemon protocol and the thin client
//!   the shim uses (ADR 0011);
//! - [`output`]: the `sail verify --output json` document (ADR 0014);
//! - [`schema`]: a small JSON Schema checker for that document's schema;
//! - [`policy`]: the serving policy for cached `unknown` answers (ADR 0009);
//! - [`stamp`]: complete stat stamps and the cross-run settle rule (ADR 0082).
#![forbid(unsafe_code)]

/// Sail's version, as `sail --version` and every report state it:
/// `SAIL_VERSION` when the build sets it (`scripts/release.sh` passes the
/// release version, for example `0.1.0-rc.1`), else the crate version.
pub const VERSION: &str = match option_env!("SAIL_VERSION") {
    Some(version) if !version.is_empty() => version,
    _ => env!("CARGO_PKG_VERSION"),
};

/// Checked positive Verus report and requested-scope authority.
pub mod acceptance;
mod acceptance_sort;
/// Evidence-strength vocabulary and whole-run proof rules shared by requirement attribution.
pub mod assurance;
pub mod attribution;
pub mod bounded;
pub mod campaign;
pub mod evidence;
pub mod health;
pub mod jobs;
pub mod output;
pub mod policy;
pub mod preparation;
pub mod project;
pub mod proof;
pub mod protocol;
pub mod repair;
/// Internal checked construction of a package report's verification mode.
#[doc(hidden)]
pub mod request_mode;
pub mod runtime;
pub mod schema;
pub mod stamp;
pub mod temporal;

#[cfg(unix)]
pub mod client;

pub mod counterexample;