Skip to main content

parse_lifecycle_attr

Function parse_lifecycle_attr 

Source
pub fn parse_lifecycle_attr(meta: &Meta) -> Result<Option<LifecycleSpec>>
Expand description

Parse lifecycle spec from miniextendr attribute arguments.

Supports:

  • lifecycle = "deprecated" (simple stage)
  • lifecycle(stage = "deprecated", when = "0.4.0", with = "new_fn()") (full spec)