Closed douglas-raillard-arm closed 1 year ago
That example was indeed missing an explanation; a fix for that was submitted a few days ago (issue: #11, pr: #12), and it has just been merged:
The idea is that you need to use the #[derive]
of this crate rather than the built-in one, precisely to support "banged Derive!
s"
Ah ok makes sense, I did not realize the crate overrides the derive()
attribute itself. I did not even know it was possible to do so, Rust is really quite flexible.
README.md currently contains this snippet:
This will not compile. From my understanding of this code https://github.com/danielhenrymantilla/macro_rules_attribute-rs/blob/f7514b6752066a1fbac272c5a657190965915f7d/src/lib.rs#L224 it should contain this instead: