Cargo Features
[dependencies]
diesel-connection = { version = "4.1.0", default-features = false, features = ["dotenv", "mysql", "postgres", "sqlite"] }
- default = postgres
-
The
postgresfeature is set by default wheneverdiesel-connectionis added withoutsomewhere in the dependency tree.default-features = false - dotenv = dotenvy
-
Enable automatic at-most-once dotenv loading via
dotenvy. - mysql
-
Affects
diesel-connection::mysql… - postgres default
-
Affects
diesel-connection::pg… - sqlite
-
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.