Expand description
Macrosยง
- alloc
- Indicates the
alloccrate is available and can be used. - arc
- Indicates that this target has access to a native implementation of
Arc. - critical_
section - Indicates
critical-sectionis 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
panicwill lead to an abort, and cannot be caught. - panic_
unwind - Indicates that a
panicwill be unwound, and can be potentially caught. - std
- Indicates the
stdcrate is available and can be used. - switch
- Provides a
match-like expression similar tocfg_ifand based on the experimentalcfg_match. The nameswitchis used to avoid conflict with thematchkeyword. 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.