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
//! The port through which Plan reads a file's metadata and content digest.
//!
//! Its own file because both mean touching the filesystem, which this crate never does. The two
//! are separate calls because they cost differently: metadata is cheap and asked of every input,
//! a digest reads the whole file and is asked only of the inputs whose metadata changed.
//!
//! Responsibilities: [`Digester`].
//!
//! Non-responsibilities: implementing it, and deciding which files need a digest. The first
//! belongs to an adapter crate; the second is the caller's.
//!
//! This file holds only a trait definition, so it carries no logic to unit-test.
use crateResult;
use crate;
/// Reads the metadata and the content digests of workspace files.