worktable_macros 0.9.0

Proc-macro companion crate for worktable: the worktable! macro and its derives. Formerly published as worktable_codegen.
Documentation
1
2
3
4
5
6
7
8
9
mod generator;
mod parser;

use proc_macro2::TokenStream;

pub fn expand(input: TokenStream) -> syn::Result<TokenStream> {
    let parsed = parser::MigrationEngineInput::parse(input)?;
    Ok(generator::generate(parsed))
}