diesel_derives 1.0.0

Custom derive and procedural macros for Diesel
Documentation

Diesel Derives

This crate implements Diesel's procedural macros using the Macros 1.1 system. It depends on features introduced in Rust 1.15. Make sure to always use the latest stable release for optimal performance and feature support.

Diesel Derives provides custom derive implementations for Queryable, Identifiable, Insertable, AsChangeset, and Associations.

Using this crate

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

diesel_derives = { version = "0.16.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:

#[macro_use] extern crate diesel_derives;

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