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
//! The checks over a whole project: the packs and extensions it lists, taken together.
//!
//! A pack or extension can be valid alone and still disagree with the rest of the project, so the
//! rules that need several of them live apart from the loaders that read one.
//!
//! # Responsibilities
//!
//! - [`check()`]: validates a project file with what loading each of its entries returned, and
//! returns a [`ValidSet`] or every refusal.
//! - [`ValidSet`]: a project that passed every check, with its loaded packs and extensions, the
//! resolved option values and the airsl range. It is the only input later stages accept.
//! - [`AirslRange`]: the `requires.airsl` ranges of the packs and the versions they admit
//! together.
//! - [`SetError`]: the refusals with a wording of their own that these checks raise.
//! - `fetched`, `graph`, `targets`, `runs`, `options` and `interval` hold the crate-internal
//! checks that [`check()`] runs, one rule each.
//!
//! # Non-responsibilities
//!
//! Loading a pack or an extension belongs to their own groups, and fetching their sources to the
//! stage that plans an install. Probing the installed airsl is left to that stage too; this group
//! only tests a given version against the ranges.
//!
//! This file is an export-only module with no executable logic, so it carries no inline tests.
pub use AirslRange;
pub use check;
pub use SetError;
pub use ValidSet;