Draft: Experimentally start revising tor-rpcbase to use derive_deftly.
The current macros here use a pile of awful crud to work around limitations in macro_rules
. In nearly all cases, derive_deftly makes the macro invocations simpler.
There are a few TODO issues I've found in derive_deftly while working on this:
- I'm not sure how documentation is supposed to work. (Diziet/rust-derive-deftly#34 (closed))
- There isn't an obvious way for one derive_deftly macro to invoke another. (Diziet/rust-derive-deftly#35)
- There isn't an obvious way to iterate over a
tmeta
. (Diziet/rust-derive-deftly#36) - I don't know if I'm testing for genericity in the right way. (Diziet/rust-derive-deftly#37 (closed))
Once this is resolved, I think I can do a better version of this, and actually replace the old macros.