Skip to main content

unitype_runtime/
lib.rs

1//! Running proofs.
2//!
3//! A signature is a proposition and an implementation is a proof of it. This
4//! crate is where proofs actually run: it holds the registry of what proves
5//! what, the environments those proofs run in, and the dispatcher that decides
6//! which proof answers a given call.
7//!
8//! Everything here checks both sides of the boundary. Arguments are checked
9//! against the signature before an implementation sees them, and the result is
10//! checked against the signature before the caller does. An implementation that
11//! returns the wrong shape has failed to prove what it claimed, and that fails
12//! loudly rather than propagating.
13
14#![forbid(unsafe_code)]
15#![warn(missing_docs)]
16
17pub mod conform;
18pub mod dispatch;
19pub mod environment;
20pub mod error;
21pub mod implementation;
22pub mod interpret;
23pub mod parametric;
24pub mod registry;
25mod spawn;
26pub mod subprocess;
27#[cfg(feature = "wasm")]
28pub mod wasm;
29pub mod worker;
30
31pub use conform::{Answer, ConformError, Report, Suite, Vector};
32pub use dispatch::{Considered, Dispatcher, Invocation, Options, Outcome, Policy};
33pub use environment::{Environment, Reach};
34pub use error::{DispatchError, ExecError};
35pub use implementation::{ImplId, Implementation, Manifest};
36pub use interpret::{BoxFuture, Calls, NoCalls, Scope, eval, eval_signature};
37pub use parametric::{Law, ParametricError, Theorems, Trial, Verdict};
38pub use registry::{Registry, RegistryError, RegistryWarning};
39pub use subprocess::PROTOCOL_VERSION;
40pub use worker::Workers;