pub struct CargoSelection {
pub profile: Option<String>,
pub features: CargoFeatureSelection,
pub locked: bool,
pub offline: bool,
}Expand description
Caller-selected profile, features and network/lock policy for one recipe.
Package, target, manifest, output paths and message format belong to the enclosing build specification. Arbitrary Cargo arguments are not accepted. Use both locked and offline for Cargo’s frozen policy. Defaults select Cargo’s dev profile and default features, with network and lockfile policy inherited from the caller’s environment/command factory.
Fields§
§profile: Option<String>Named Cargo profile; None selects dev. Release renders as –release.
features: CargoFeatureSelectionExplicit features and whether default features are enabled.
locked: boolRequire Cargo to preserve the selected lockfile.
offline: boolPrevent Cargo from accessing the network.
Trait Implementations§
Source§impl Clone for CargoSelection
impl Clone for CargoSelection
Source§impl Debug for CargoSelection
impl Debug for CargoSelection
Source§impl Default for CargoSelection
impl Default for CargoSelection
impl Eq for CargoSelection
Source§impl PartialEq for CargoSelection
impl PartialEq for CargoSelection
impl StructuralPartialEq for CargoSelection
Auto Trait Implementations§
impl Freeze for CargoSelection
impl RefUnwindSafe for CargoSelection
impl Send for CargoSelection
impl Sync for CargoSelection
impl Unpin for CargoSelection
impl UnsafeUnpin for CargoSelection
impl UnwindSafe for CargoSelection
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