pub struct BuildScript {
pub log: bool,
pub windows: Vec<String>,
pub linux: Vec<String>,
}
Fields§
§log: bool
Indicator whether the output is logged within thinline output or not.
windows: Vec<String>
Windows build steps.
linux: Vec<String>
Linux build steps.
Implementations§
Source§impl BuildScript
impl BuildScript
Sourcepub fn run(&self, dir: &str) -> Fallible<()>
pub fn run(&self, dir: &str) -> Fallible<()>
Executes the build script depending on the target OS.
On Windows the script is executed with cmd
, on linux with sh
.
All build steps are concatenated with &&
.
Given build steps are executed at the target project directory,
not at thinline directory. The yaml param log
at build_script
section indicates whether the build outpus is print within the
thinline output (true) or the child process (false).
Trait Implementations§
Source§impl Debug for BuildScript
impl Debug for BuildScript
Source§impl Default for BuildScript
impl Default for BuildScript
Source§fn default() -> BuildScript
fn default() -> BuildScript
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BuildScript
impl RefUnwindSafe for BuildScript
impl Send for BuildScript
impl Sync for BuildScript
impl Unpin for BuildScript
impl UnwindSafe for BuildScript
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