pub struct Profile {Show 14 fields
pub opt_level: Option<Value>,
pub debug: Option<DebugSetting>,
pub split_debuginfo: Option<String>,
pub rpath: Option<bool>,
pub lto: Option<LtoSetting>,
pub debug_assertions: Option<bool>,
pub codegen_units: Option<u16>,
pub panic: Option<String>,
pub incremental: Option<bool>,
pub overflow_checks: Option<bool>,
pub strip: Option<StripSetting>,
pub package: BTreeMap<String, Value>,
pub build_override: Option<Value>,
pub inherits: Option<String>,
}
Expand description
Compilation/optimization settings for a workspace
Fields§
§opt_level: Option<Value>
num or z, s
debug: Option<DebugSetting>
0,1,2 or bool
split_debuginfo: Option<String>
Move debug info to separate files
rpath: Option<bool>
For dynamic libraries
lto: Option<LtoSetting>
Link-time-optimization
debug_assertions: Option<bool>
Extra assertions
codegen_units: Option<u16>
Parallel compilation
panic: Option<String>
Handling of panics/unwinding
incremental: Option<bool>
Support for incremental rebuilds
overflow_checks: Option<bool>
Check integer arithmetic
strip: Option<StripSetting>
Remove debug info
package: BTreeMap<String, Value>
Profile overrides for dependencies, *
is special.
build_override: Option<Value>
Profile overrides for build dependencies, *
is special.
inherits: Option<String>
Only relevant for non-standard profiles
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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 Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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