pub struct Cargo {
command: Command,
rustflags: Rustflags,
rustdocflags: Rustflags,
allow_features: String,
}
Fields§
§command: Command
§rustflags: Rustflags
§rustdocflags: Rustflags
§allow_features: String
Implementations§
source§impl Cargo
impl Cargo
pub fn rustdocflag(&mut self, arg: &str) -> &mut Cargo
pub fn rustflag(&mut self, arg: &str) -> &mut Cargo
pub fn arg(&mut self, arg: impl AsRef<OsStr>) -> &mut Cargo
pub fn args<I, S>(&mut self, args: I) -> &mut Cargowhere I: IntoIterator<Item = S>, S: AsRef<OsStr>,
pub fn env( &mut self, key: impl AsRef<OsStr>, value: impl AsRef<OsStr> ) -> &mut Cargo
pub fn add_rustc_lib_path(&mut self, builder: &Builder<'_>, compiler: Compiler)
pub fn current_dir(&mut self, dir: &Path) -> &mut Cargo
sourcepub fn allow_features(&mut self, features: &str) -> &mut Cargo
pub fn allow_features(&mut self, features: &str) -> &mut Cargo
Adds nightly-only features that this invocation is allowed to use.
By default, all nightly features are allowed. Once this is called, it will be restricted to the given set.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Cargo
impl Send for Cargo
impl Sync for Cargo
impl Unpin for Cargo
impl !UnwindSafe for Cargo
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 344 bytes