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
//! The port through which the pipeline reads and writes what a build recorded for a target.
//!
//! Its own file because the rows outlive a run, so they are stored somewhere, and this crate
//! stores nothing. A plan reads the row a target's last build left; a build writes a new one
//! once the target has been built again.
//!
//! Responsibilities: [`ActionCache`].
//!
//! Non-responsibilities: implementing it, and deciding when a row is written. The first belongs
//! to an adapter crate; a row is written only for a target whose outputs are already stored.
//!
//! This file holds only a trait definition, so it carries no logic to unit-test.
use crateResult;
use crate;
/// Holds the row the last successful build of each target recorded, until a failure under the
/// same key makes the cache forget it.