pub enum BuildStep {
Run {
description: String,
program: String,
args: Vec<String>,
cwd: PathBuf,
env: Vec<(String, String)>,
},
CreateDir {
path: PathBuf,
},
Copy {
from: PathBuf,
to: PathBuf,
},
RemoveIfExists {
path: PathBuf,
},
Write {
path: PathBuf,
contents: Vec<u8>,
},
Mirror {
dir: PathBuf,
files: Vec<(PathBuf, PathBuf)>,
keep: Vec<PathBuf>,
},
}Expand description
One step the build driver executes for a target.
Variants§
Run
Fields
CreateDir
Copy
RemoveIfExists
Write
Write a file, creating its directory.
Mirror
Make dir hold exactly files plus the paths in keep, which
other steps own (for example generated localizations). Files are
copied by content, without extended attributes; a destination whose
size and modification time match its source is left alone. Anything
else below dir is removed, so files dropped from a declaration do
not linger in the product.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuildStep
impl RefUnwindSafe for BuildStep
impl Send for BuildStep
impl Sync for BuildStep
impl Unpin for BuildStep
impl UnsafeUnpin for BuildStep
impl UnwindSafe for BuildStep
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