Cargo Features

[dependencies]
diesel_codegen = { version = "0.16.1", default-features = false, features = ["lint", "postgres", "sqlite", "mysql", "dotenv"] }
default = dotenv

The dotenv feature is set by default whenever diesel_codegen is added without default-features = false somewhere in the dependency tree.

lint = clippy
postgres

Enables postgres of diesel ^0.16.0 and diesel_infer_schema ^0.16.0

sqlite

Enables sqlite of diesel ^0.16.0 and diesel_infer_schema ^0.16.0

mysql

Enables mysql of diesel ^0.16.0 and diesel_infer_schema ^0.16.0

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality [may be removed in the future](https://rust-lang.github.io/rfcs/3491-remove-implicit-features.html).

dotenv default

Enables dotenv >=0.8, <0.11

diesel_infer_schema mysql? postgres? sqlite?

Enables diesel_infer_schema ^0.16.0

Affects diesel_codegen::derive_infer_schema, diesel_codegen::derive_infer_table_from_schema

clippy lint?

Enables clippy =0.0.138