diesel_codegen 0.8.0

Custom derive and procedural macros for Diesel
docs.rs failed to build diesel_codegen-0.8.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: diesel_codegen-0.16.1

Diesel Codegen

This crate implements Diesel's procedural macros using the Macros 1.1 system. It requires nightly Rust from October 10, 2016 or later. For usage on stable Rust, see diesel_codegen_syntex.

Diesel Codegen provides custom derive implementations for Queryable, Identifiable, [Insertable][insertable], AsChangeset, and [Associations]. It also provides the macros infer_schema!, infer_table_from_schema!, and embed_migrations!.

Using this crate

First, add this crate to Cargo.toml as so:

diesel_codegen = { version = "0.8.0", features = ["postgres"] }

If you are using SQLite, be sure to specify sqlite instead of postgres in the features section.

Next, at the root of your crate add:

#![feature(proc_macro)]

#[macro_use] extern crate diesel_codegen;

See the documentation for each trait/macro for additional details and configuration options.