Cargo Features
[dependencies]
vmail-rs = { version = "0.4.0", default-features = false, features = ["mysql", "postgres"] }
- default = mysql
-
The
mysql
feature is set by default whenevervmail-rs
is added without
somewhere in the dependency tree.default-features = false - mysql default
-
Enables mysql of diesel ^1.4 and diesel-derive-enum ^1.1
- postgres
-
Thomas Leistner's tutorial is using mysql, so this is the default database backend. Build with
--features postgres
for postgres support.Enables postgres of diesel ^1.4 and diesel-derive-enum ^1.1