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 wheneverdiesel_codegen_shared
is added without
somewhere in the dependency tree.default-features = false - 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