pub struct Action {
pub kind: ActionKind,
pub inputs: Vec<PathBuf>,
pub implicit_inputs: Vec<PathBuf>,
pub outputs: Vec<PathBuf>,
pub depfile: Option<PathBuf>,
pub command: Vec<String>,
pub description: String,
}Expand description
A single buildable step.
Fields§
§kind: ActionKind§inputs: Vec<PathBuf>Inputs that participate in the command (e.g. .cc for compile,
.o/.a for link).
implicit_inputs: Vec<PathBuf>Inputs the action implicitly depends on but that are not arguments. Used by C/C++ compiles whose source is generated by an upstream action.
outputs: Vec<PathBuf>Files this action produces.
depfile: Option<PathBuf>Optional Makefile-style depfile path; populated for C/C++
compiles so Ninja can wire -MMD -MF $depfile into its
deps = gcc machinery.
command: Vec<String>Argv-style command, ready to be shell-quoted by the backend.
description: StringShort, human-readable description for build output (CXX foo.o).
Trait Implementations§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.