Skip to main content

Crate repe_derive

Crate repe_derive 

Source
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 inherent impl block that reflects its methods. A derive macro cannot see impl blocks, so this is a separate macro tied to the derive by a compile-time handshake.

Attribute Macros§

methods
Publish every method of an inherent impl block as an RPC endpoint.
plugin
Export a Router constructor as a REPE C-ABI plugin.

Derive Macros§

RepeStruct