File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,33 @@ use once_cell::sync::Lazy;
34
34
#[ cfg( test) ]
35
35
mod tests;
36
36
37
+ /// Builds and performs different [`Self::kind`]s of stuff and actions, taking
38
+ /// into account build configuration from e.g. config.toml.
37
39
pub struct Builder < ' a > {
40
+ /// Build configuration from e.g. config.toml.
38
41
pub build : & ' a Build ,
42
+
43
+ /// The stage to use. Either implicitly determined based on subcommand, or
44
+ /// explicitly specified with `--stage N`. Normally this is the stage we
45
+ /// use, but sometimes we want to run steps with a lower stage than this.
39
46
pub top_stage : u32 ,
47
+
48
+ /// What to build or what action to perform.
40
49
pub kind : Kind ,
50
+
51
+ /// A cache of outputs of [`Step`]s so we can avoid running steps we already
52
+ /// ran.
41
53
cache : Cache ,
54
+
55
+ /// A stack of [`Step`]s to run before we can run this builder. The output
56
+ /// of steps is cached in [`Self::cache`].
42
57
stack : RefCell < Vec < Box < dyn Any > > > ,
58
+
59
+ /// The total amount of time we spent running [`Step`]s in [`Self::stack`].
43
60
time_spent_on_dependencies : Cell < Duration > ,
61
+
62
+ /// The paths to work with. For example: with `./x check foo bar` we get
63
+ /// `paths=["foo", "bar"]`.
44
64
pub paths : Vec < PathBuf > ,
45
65
}
46
66
Original file line number Diff line number Diff line change @@ -345,6 +345,8 @@ pub struct Config {
345
345
#[ cfg( test) ]
346
346
pub initial_rustfmt : RefCell < RustfmtState > ,
347
347
348
+ /// The paths to work with. For example: with `./x check foo bar` we get
349
+ /// `paths=["foo", "bar"]`.
348
350
pub paths : Vec < PathBuf > ,
349
351
}
350
352
You can’t perform that action at this time.
0 commit comments