pub struct Build { /* private fields */ }
Implementations§
source§impl Build
impl Build
pub fn new() -> Build
pub fn out_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Build
pub fn target(&mut self, target: &str) -> &mut Build
pub fn host(&mut self, host: &str) -> &mut Build
pub fn openssl_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Build
sourcepub fn build(&mut self) -> Artifacts
pub fn build(&mut self) -> Artifacts
Exits the process on failure. Use try_build
to handle the error.
pub fn try_build(&mut self) -> Result<Artifacts, String>
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