Cargo Features

[dependencies]
diesel_derives_extra = { version = "0.2.0", default-features = false, features = ["postgres", "logger"] }
default = postgres

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

postgres default

Enables postgres of diesel ^1.4.6

logger = diesel_logger

"mysql" = ["diesel/mysql"]
"sqlite" = ["diesel/sqlite"]

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.

diesel_logger logger?

Enables diesel_logger ^0.1.1