pub struct Build { /* private fields */ }
Expand description
A build configuration.
Implementations§
Source§impl Build
A very basic implementation of a binding to an external compiler, supporting
specification of input and output files.
impl Build
A very basic implementation of a binding to an external compiler, supporting specification of input and output files.
Sourcepub fn new() -> Build
pub fn new() -> Build
Construct a new build configuration with default values, which will fail to compile by default.
Sourcepub fn dest(&mut self, d: &str) -> &mut Build
pub fn dest(&mut self, d: &str) -> &mut Build
Set the destination .rs
file to generate the output library into.
Sourcepub fn compile(&mut self)
pub fn compile(&mut self)
Run the compiler on the current build configuration, failing miserably on error.
Sourcepub fn try_compile(&mut self) -> Result<(), String>
pub fn try_compile(&mut self) -> Result<(), String>
Attempt to run the compiler on the current build configuration, politely returning an error message if the compiler fails.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnwindSafe for Build
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