pub struct TargetConfig {
pub name: Option<String>,
pub path: Option<PathBuf>,
pub test: Option<bool>,
pub doctest: Option<bool>,
pub bench: Option<bool>,
pub plugin: Option<bool>,
pub proc_macro: Option<bool>,
pub harness: Option<bool>,
pub edition: Option<String>,
pub required_features: Option<Vec<String>>,
pub crate_type: Option<Vec<String>>,
}Expand description
All the sections here use the same stuff. https://doc.rust-lang.org/cargo/reference/manifest.html#configuring-a-target
Fields§
§name: Option<String>§path: Option<PathBuf>§test: Option<bool>§doctest: Option<bool>§bench: Option<bool>§plugin: Option<bool>§proc_macro: Option<bool>§harness: Option<bool>§edition: Option<String>§required_features: Option<Vec<String>>§crate_type: Option<Vec<String>>Trait Implementations§
Source§impl Clone for TargetConfig
impl Clone for TargetConfig
Source§fn clone(&self) -> TargetConfig
fn clone(&self) -> TargetConfig
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 TargetConfig
impl Debug for TargetConfig
Source§impl Default for TargetConfig
impl Default for TargetConfig
Source§fn default() -> TargetConfig
fn default() -> TargetConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TargetConfig
impl<'de> Deserialize<'de> for TargetConfig
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
Auto Trait Implementations§
impl Freeze for TargetConfig
impl RefUnwindSafe for TargetConfig
impl Send for TargetConfig
impl Sync for TargetConfig
impl Unpin for TargetConfig
impl UnsafeUnpin for TargetConfig
impl UnwindSafe for TargetConfig
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