Expand description
Procedural macros for the repe crate.
Two entry points, both of which exist so the served RPC surface is derived from the type rather than restated next to it:
RepeStruct— a derive that reflects a struct’s fields into JSON Pointer endpoints.methods— an attribute on an inherentimplblock that reflects its methods. A derive macro cannot seeimplblocks, so this is a separate macro tied to the derive by a compile-time handshake.
Attribute Macros§
- methods
- Publish every method of an inherent
implblock as an RPC endpoint. - plugin
- Export a
Routerconstructor as a REPE C-ABI plugin.