Skip to main content

deprecated

Attribute Macro deprecated 

Source
#[deprecated]
Expand description

Attribute that marks an item as deprecated with a doc badge. Emits the native #[deprecated(since=..., note=...)] so consumers don’t need a second attribute. The macro name shadows the built-in #[deprecated] only inside the same use-scope — emit it via the qualified path #[oxicode_api_stability::deprecated(...)] or by importing under a different name (use oxicode_api_stability::deprecated as oxicode_deprecated;) if you also need the built-in. Accepts: since = "0.XX.0" (required), note = "..." (optional).