extract_derive_plugins

Function extract_derive_plugins 

Source
pub fn extract_derive_plugins(attrs: &[Attribute]) -> Vec<PluginRef>
Expand description

Extract plugin references from #[facet(derive(Plugin1, Plugin2, ...))] attributes.

Supports both simple names and explicit paths:

  • #[facet(derive(Error))]PluginRef::Simple("Error")
  • #[facet(derive(facet_miette::Diagnostic))]PluginRef::Path { crate_name: "facet_miette", plugin_name: "Diagnostic" }