I suppose we don't want to make the macro too complicated, but perhaps a variant could be added like:

```
    ($(#[$a:meta])* $BitFlags:ident: $T:ty {
        $($Flag:ident = $value:expr),+
    }) => ( ... )
```

So you can add your custom attributes/deriving modes to the struct. We can wait and see how it turns out though.