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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
//! The ports: the traits through which this crate reaches everything outside itself.
//!
//! Its own directory because the crate's defining property is that it names no I/O API. Every
//! capability this crate needs from the outside world arrives as an implementation of a trait
//! declared here, supplied by a caller, rather than through a direct call to an I/O API. Every
//! trait of the crate lives here, the bundle included, so no logic module declares one.
//!
//! Responsibilities:
//!
//! - [`Clock`] — reading the host wall clock.
//! - [`DeclarationSource`] — evaluating one build file.
//! - [`Manifest`] — what a workspace's manifest says.
//! - [`Host`] — the platform actions run on, and the values of environment variables.
//! - [`Digester`] — a file's metadata and content digest.
//! - [`StatCache`] — the digests of files already hashed.
//! - [`ToolResolver`] — what identifies the program a command names.
//! - [`ActionCache`] — what a build recorded for a target, read and written.
//! - [`ContentStore`] — what actions produce, held by content and placed in the workspace.
//! - [`EventLog`] — the record of how each target of a build ended.
//! - [`RunHistory`] — the lines of the build log, read back.
//! - [`Sweep`] — what the content store holds, listed and removed.
//! - [`ExecStrategy`] — running one action in a directory of its own.
//! - [`Dispatcher`] — having several tasks worked on at once.
//! - [`GraphRecord`] — the graph a build resolved, kept where a later reader finds it.
//! - [`Reporter`] — showing a person what a build is doing.
//! - [`Approver`] — saying whether a build may do what it wants.
//! - [`RemoteCache`] — a cache of results shared between machines, asked and filled by the action
//! that made them; [`BlobSource`] — where the bytes an upload names are read from;
//! [`NoRemote`] — the remote cache of a build that has none.
//! - [`Changes`] — the files that changed in the workspace, one debounced batch at a time.
//! - [`Cycles`] — one build, and one load of the build files, on the workspace opened again.
//! - [`WatchReport`] — what a watching loop tells a person: building, failed, waiting.
//! - [`Ports`] — the bundle naming one implementation of each port, so a pipeline takes one type
//! parameter instead of one per port.
//! - [`PortSet`] — one instance of each port a bundle names, so a pipeline is built from one
//! value.
//!
//! Non-responsibilities: production implementations. A real implementation does I/O, so it lives
//! in an adapter crate; the only implementations in this crate are test fakes.
//!
//! This file holds only module declarations and re-exports, so it carries no logic to unit-test.
pub
pub use ActionCache;
pub use Approver;
pub use Ports;
pub use Changes;
pub use Clock;
pub use ContentStore;
pub use Cycles;
pub use DeclarationSource;
pub use Digester;
pub use Dispatcher;
pub use EventLog;
pub use ExecStrategy;
pub use GraphRecord;
pub use Host;
pub use Manifest;
pub use NoRemote;
pub use PortSet;
pub use ;
pub use Reporter;
pub use RunHistory;
pub use StatCache;
pub use Sweep;
pub use ToolResolver;
pub use WatchReport;