#[non_exhaustive]pub enum Profile {
Dev,
Release,
Test,
Bench,
Other(String),
}
Expand description
Profile of the current build.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dev
The dev profile is used for normal development and debugging.
It is the default for build commands like cargo build
.
dev
Release
The release profile is intended for optimized artifacts used for releases and in production.
This profile is used when the --release
flag is used, and is the default for cargo install
.
release
Test
The test profile is used for building tests, or when benchmarks are built in debug mode with cargo build
.
test
Bench
The bench profile is used for building benchmarks, or when tests are built with the --release
flag.
bench
Other(String)
Unknown value
Implementations§
Trait Implementations§
Source§impl Ord for Profile
impl Ord for Profile
Source§impl PartialOrd for Profile
impl PartialOrd for Profile
impl Eq for Profile
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