Skip to main content

profiles

Function profiles 

Source
pub fn profiles(context: &BuildContext, fixed: &str) -> String
Expand description

The [profile] tables of a generated crate. A generated crate is a workspace of its own, so the application’s profiles would not reach the programs a target builds: they are carried over from its workspace manifest. Release builds start from RELEASE_PROFILE, take the application’s own release settings over it, and keep fixed, the lines the target cannot do without (unwinding across the FFI, say); the other profiles, such as optimized libraries in debug builds, are the application’s as they are.