Expand description
Macrosยง
- alloc
- Indicates the
alloc
crate is available and can be used. - arc
- Indicates that this target has access to a native implementation of
Arc
. - critical_
section - Indicates
critical-section
is available. - define_
alias - Defines an alias for a particular configuration.
This has two advantages over directly using
#[cfg(...)]
: - disabled
- Macro which represents a disabled compilation condition.
- enabled
- Macro which represents an enabled compilation condition.
- panic_
abort - Indicates that a
panic
will lead to an abort, and cannot be caught. - panic_
unwind - Indicates that a
panic
will be unwound, and can be potentially caught. - std
- Indicates the
std
crate is available and can be used. - switch
- Provides a
match
-like expression similar tocfg_if
and based on the experimentalcfg_match
. The nameswitch
is used to avoid conflict with thematch
keyword. Arms are evaluated top to bottom, and an optional wildcard arm can be provided if no match can be made. - web
- Indicates that this target has access to browser APIs.