diesel_codegen

Crates.iodiesel_codegen
lib.rsdiesel_codegen
version0.16.1
sourcesrc
created_at2015-11-29 17:55:04.112015
updated_at2018-05-27 13:03:49.649353
descriptionCustom derive and procedural macros for Diesel
homepagehttp://diesel.rs
repositoryhttps://github.com/diesel-rs/diesel/tree/master/diesel_codegen
max_upload_size
id3532
size48,173
Core (github:diesel-rs:core)

documentation

http://docs.diesel.rs

README

Diesel Codegen

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 Codegen provides custom derive implementations for Queryable, Identifiable, 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.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_codegen;

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

Commit count: 5854

cargo fmt