You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I would like to ask if we can add a method to ParseCallback that emits custom attributes? I have a several larger enums generated by bindgen and would like to use strum::EnumString to look up variants by name, but to make it efficient I also want to add #[strum(use_phf)]. The former can be easily done, but the latter doesn't seem possible with bindgen.
Is this something you'd be open to adding to ParseCallback? I could imagine this to be useful for serde, too.
The text was updated successfully, but these errors were encountered:
Probably not to ParseCallback, since it's not something that needs done during parsing? But yeah, it seems generalizing the derive API to also support other attributes seems reasonable.
Hi!
I would like to ask if we can add a method to
ParseCallback
that emits custom attributes? I have a several larger enums generated by bindgen and would like to usestrum::EnumString
to look up variants by name, but to make it efficient I also want to add#[strum(use_phf)]
. The former can be easily done, but the latter doesn't seem possible with bindgen.Is this something you'd be open to adding to
ParseCallback
? I could imagine this to be useful for serde, too.The text was updated successfully, but these errors were encountered: