TedDriggs / darling

A Rust proc-macro attribute parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document #[darling(supports(…))] shape attributes

detly opened this issue · comments

There are attributes for enforcing particular shapes that are supported by Darling's attributes: #[darling(supports(…))] (and #[darling(ignore(…))]?). These are in core/src/options/shape.rs with an example here.

It looks like the docs are already there, but need to be surfaced and perhaps expanded on.