pub struct Profiles {
pub release: Option<Profile>,
pub dev: Option<Profile>,
pub test: Option<Profile>,
pub bench: Option<Profile>,
pub doc: Option<Profile>,
pub custom: BTreeMap<String, Profile>,
}
Expand description
Build-in an custom build/optimization settings
Fields§
§release: Option<Profile>
Used for --release
dev: Option<Profile>
Used by default, weirdly called debug
profile.
test: Option<Profile>
Used for cargo test
bench: Option<Profile>
Used for cargo bench
(nightly)
doc: Option<Profile>
Used for cargo doc
custom: BTreeMap<String, Profile>
User-suppiled for cargo --profile=name
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profiles
impl<'de> Deserialize<'de> for Profiles
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 StructuralPartialEq for Profiles
Auto Trait Implementations§
impl Freeze for Profiles
impl RefUnwindSafe for Profiles
impl Send for Profiles
impl Sync for Profiles
impl Unpin for Profiles
impl UnwindSafe for Profiles
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