@@ -5,9 +5,9 @@ edition = "2021"
55build = " src/build.rs"
66
77[features ]
8- postgres = [" diesel/postgres" , " diesel_migrations/postgres" ]
9- sqlite = [" diesel/sqlite" , " diesel_migrations/sqlite" ]
10- mysql = [" diesel/mysql" , " diesel_migrations/mysql" ]
8+ postgres = [" diesel/postgres" , " diesel_migrations/postgres" , " dep:pq-sys " ]
9+ sqlite = [" diesel/sqlite" , " diesel_migrations/sqlite" , " dep:libsqlite3-sys " ]
10+ mysql = [" diesel/mysql" , " diesel_migrations/mysql" , " dep:mysqlclient-sys " ]
1111vendored_postgres = [" pq-sys/bundled" ]
1212vendored_sqlite = [" libsqlite3-sys/bundled" ]
1313vendored_mysql = [" mysqlclient-sys/bundled" ]
@@ -60,9 +60,11 @@ diesel = { version = "2.2.4", features = [
6060 " chrono" ,
6161] }
6262diesel_migrations = { version = " 2.2.0" }
63- pq-sys = " 0.6.3"
64- mysqlclient-sys = " 0.4.1"
65- libsqlite3-sys = " 0.30.1"
63+
64+ # Database drivers
65+ pq-sys = { version = " 0.6.3" , optional = true }
66+ mysqlclient-sys = { version = " 0.4.1" , optional = true }
67+ libsqlite3-sys = { version = " 0.30.1" , optional = true }
6668
6769# Date and time
6870chrono = { version = " 0.4.38" , features = [" serde" ] }
0 commit comments