Cargo Features

[dependencies]
diesel-connection = { version = "4.1.0", default-features = false, features = ["dotenv", "mysql", "postgres", "sqlite"] }
default = postgres

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

dotenv = dotenvy

Enable automatic at-most-once dotenv loading via dotenvy.

mysql

Enables mysql of diesel

Affects diesel-connection::mysql

postgres default

Enables postgres of diesel

Affects diesel-connection::pg

sqlite

Enables sqlite of diesel

Affects diesel-connection::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.

dotenvy dotenv?