1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! # requisite
//!
//! `requisite` encodes data-handling requirements in types:
//!
//! - [`trust`] routes external input through a named sanitizer before trusted
//! sinks receive it.
//! - [`confidence`] maps probabilities to action tiers and issues a
//! [`Certain`](confidence::Certain) token for the highest tier.
//! - [`fresh`] checks TTLs at read time and binds operation-scoped values to
//! their closure.
//!
//! A function states its requirement in its parameter type. Callers satisfy
//! that requirement through the corresponding transition or check.
//!
//! ## Enforcement
//!
//! Trust tags, confidence tiers, proof tokens, and scoped lifetimes are checked
//! by the compiler. TTLs and confidence thresholds are evaluated at runtime.
//!
//! Runtime checks return types that carry their result forward.
//! [`Confident::gate`](confidence::Confident::gate), for example, returns a tier
//! whose highest variant includes a [`Certain`](confidence::Certain) token.
//!
//! ## Guides
//!
//! - [Getting started](https://github.com/slepp/requisite/blob/main/docs/getting-started.md)
//! - [Trust transitions](https://github.com/slepp/requisite/blob/main/docs/trust.md)
//! - [Confidence gates](https://github.com/slepp/requisite/blob/main/docs/confidence.md)
//! - [Freshness](https://github.com/slepp/requisite/blob/main/docs/freshness.md)
//! - [Integration patterns](https://github.com/slepp/requisite/blob/main/docs/integration.md)
/// Common imports.