pub struct CargoBuild { /* private fields */ }Expand description
Builder for cargo build commands.
Implementations§
Source§impl CargoBuild
impl CargoBuild
Sourcepub fn new(manifest_path: &Path) -> CargoBuild
pub fn new(manifest_path: &Path) -> CargoBuild
Returns a new builder for a cargo build command that operates on the manifest residing at the given path.
Sourcepub fn crate_type(self, crate_type: &str) -> CargoBuild
pub fn crate_type(self, crate_type: &str) -> CargoBuild
Builds a crate of the given type, overriding the type that is written in the manifest.
Sourcepub fn release(self, release: bool) -> CargoBuild
pub fn release(self, release: bool) -> CargoBuild
Changes the profile of this build.
Sourcepub fn target(self, target: &str) -> CargoBuild
pub fn target(self, target: &str) -> CargoBuild
Changes the target of this build.
Trait Implementations§
Source§impl Default for CargoBuild
impl Default for CargoBuild
Source§fn default() -> CargoBuild
fn default() -> CargoBuild
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CargoBuild
impl RefUnwindSafe for CargoBuild
impl Send for CargoBuild
impl Sync for CargoBuild
impl Unpin for CargoBuild
impl UnwindSafe for CargoBuild
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