pub struct CargoOptions {
pub features: Vec<String>,
pub all_features: bool,
pub no_default_features: bool,
pub target: Option<String>,
pub package_target: Option<String>,
}Expand description
Feature / target selection passed through to cargo metadata and rustc --print cfg.
Fields§
§features: Vec<String>Explicit features forwarded as --features.
all_features: boolForwarded as --all-features.
no_default_features: boolForwarded as --no-default-features.
target: Option<String>Optional --filter-platform / rustc --target triple.
package_target: Option<String>Optional Cargo target name (lib/binary target), independent of the target triple.
Trait Implementations§
Source§impl Clone for CargoOptions
impl Clone for CargoOptions
Source§fn clone(&self) -> CargoOptions
fn clone(&self) -> CargoOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CargoOptions
impl Debug for CargoOptions
Source§impl Default for CargoOptions
impl Default for CargoOptions
Source§fn default() -> CargoOptions
fn default() -> CargoOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CargoOptions
impl<'de> Deserialize<'de> for CargoOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CargoOptions
Source§impl PartialEq for CargoOptions
impl PartialEq for CargoOptions
Source§impl Serialize for CargoOptions
impl Serialize for CargoOptions
impl StructuralPartialEq for CargoOptions
Auto Trait Implementations§
impl Freeze for CargoOptions
impl RefUnwindSafe for CargoOptions
impl Send for CargoOptions
impl Sync for CargoOptions
impl Unpin for CargoOptions
impl UnsafeUnpin for CargoOptions
impl UnwindSafe for CargoOptions
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