Cargo Features

[dependencies]
diesel_codegen_shared = { version = "0.10.0", default-features = false, features = ["postgres", "sqlite", "dotenv"] }
default = dotenv

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

postgres

Enables postgres of diesel ^0.10.0

sqlite

Enables sqlite of diesel ^0.10.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.

dotenv default

Enables dotenv ^0.8.0