Crate ruststep_derive
source ·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 fromENTITY
struct identifier
Derive Macros§
- Generate
impl Deserialize
for entity structs - Generates
Holder
struct and related implementation for eachENTITY
struct - Derive
TableInit
for tables