Diesel Codegen Syntex
Provides the functionality of diesel_codegen
using Syntex for usage on stable.
Getting started
Add diesel_codegen_syntex
to your Cargo.toml
, specifying which backends you
use.
= { = "0.9.0", = ["postgres"] }
Next, move the mod
declarations of any modules that need codegen to a separate
file, such as lib.in.rs
, like so:
// main.in.rs
// main.rs
include!;
Finally, add a build file which calls diesel_codgen_syntex::expand
// build.rs
For more examples, please see section 4 of the getting started guide