Crate ruststep_derive[][src]

Expand description

Procedural macros for second step code generation

┌────────────────┐
│ EXPRESS schema │
└──┬─────────────┘
   │ esprc
┌──▼─────────────────┐
│ Abstract Rust code │
└──┬─────────────────┘
   │ ruststep-derive
┌──▼───────────────┐
│ Actual Rust code │
└──────────────────┘

Design

  • espr::codegen::rust generates Rust code with proc-macros defined in this crate.
  • This crate does not depends on espr explicitly.

Macros

Get Holder struct identifier from ENTITY struct identifier

Derive Macros

Generate impl Deserialize for entity structs

Generates Holder struct and related implementation for each ENTITY struct

Derive TableInit for tables