Various functions allow interacting with the names of flags as strings (Flag::name, parser, etc). However, these currently must work with the SCREAMING_SNAKE_CASE name of the flag as it appears in the source code, which is not always desirable.
In Arti, we use bitflags for our router status flags, which have specific names assigned to them that do not match the Rust identifiers. It would be convenient to have a way of renaming flags with a attribute macro — here's where this usecase came up.
Various functions allow interacting with the names of flags as strings (
Flag::name,parser, etc). However, these currently must work with theSCREAMING_SNAKE_CASEname of the flag as it appears in the source code, which is not always desirable.In Arti, we use bitflags for our router status flags, which have specific names assigned to them that do not match the Rust identifiers. It would be convenient to have a way of renaming flags with a attribute macro — here's where this usecase came up.