Open Mingun opened 1 month ago
cfg
could definitely be propagated to the pub
and internal functions that implement the rule plus things like the struct field used for #[cache]
. For arbitrary attributes, it's not clear where they should be applied in the generated code, and are probably too much of a forwards-compatibility hazard, though.
I want to feature gate some rules in grammar, so tried to place
#[cfg(feature = "...")]
on it, butgrammar!
does not accept that. It would be nice if I could do that: