use-syn-cfg-attr

Installation
SKILL.md

Use syn-cfg-attr

Locate the consumer's Vec<syn::Attribute> and import syn_cfg_attr::AttributeHelpers. syn-cfg-attr 0.3 uses syn 3 and requires Rust 1.99. Check the consumer's versions before changing an integration; its attribute types must come from the same major syn version.

Choose expansion behavior

Required behavior Method
Expand all and report malformed nested entries try_flattened_attributes()
Expand parseable entries and skip malformed nested entries flattened_attributes()
Filter one identifier and report malformed nested entries try_find_attribute(name)
Filter one identifier and skip malformed nested entries find_attribute(name)

Prefer a try_* method for procedural-macro input. Use a best-effort method only when partial discovery is an explicit product decision.

Installs
4
First Seen
Aug 12, 2026