thrust icon indicating copy to clipboard operation
thrust copied to clipboard

Code Generation v2

Open thehydroimpulse opened this issue 9 years ago • 2 comments
trafficstars

Now using procedural macros, here's the working list:

Code Generation

  • [x] Namespace pub mod $x {}
    • [x] pub visibility.
  • [x] Enums
    • [x] pub visibility.
    • [x] Generate each variant.
    • [ ] enum { FOO = 123 }.
  • [x] Structs
    • [x] pub visibility.
    • [x] Generate each variant.
    • [x] Proper type mapping with generic support.
    • [x] Attribute support (optional/required)
    • [ ] Implement the Serialize trait
  • [x] Typedefs => type $X = $Y
  • [ ] Constants

thehydroimpulse avatar Apr 03 '16 12:04 thehydroimpulse

Thanks for bringing Thrift to rust! I just discovered Apache Thrift and I'm thinking about using Thrust in the near future for a litte project of mine -- just serialization to / deserialization from files for now. Would you consider Thrust stable enough for that purpose?

oleid avatar Jun 07 '16 10:06 oleid

@oleid Thrust isn't very stable atm and would require some more work to be fully usable. The serialization/deserialization is probably the more stable part but it doesn't support everything yet.

thehydroimpulse avatar Jun 08 '16 00:06 thehydroimpulse