Attribute Macro feature_gated

Source
#[feature_gated]
Expand description

Mark code dependent on specific feature flags. Accepts a string literal describing the feature dependency, like #[feature_gated("async")] or #[feature_gated("extended-api")]. This attribute does not modify the item it annotates.