Macro library for newtypes

Based on hitting my head over some of the ergonomic limitations of Rust newtypes, I wrote up a macro library: https://github.com/arienmalec/newtype_macros
Would welcome comment on code, fixing some of the limitations, and if this at all useful (although my hope would be that some of this gets fixed upstream in Rust itself in terms of proper derive annotations).

(Crossposted to Reddit).

1 Like