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