Enum build_target::Profile [−][src]
Expand description
Profile of the current build.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
dev
: The dev profile is used for normal development and debugging.
It is the default for build commands like cargo build
.
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
.
test
: The test profile is used for building tests, or when benchmarks are built in debug mode with cargo build
.
bench
: The bench profile is used for building benchmarks, or when tests are built with the --release
flag.
Custom or unknown profile.
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Profile<'a>
impl<'a> UnwindSafe for Profile<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more