Skip to content

Commit 1fb268a

Browse files
committed
chore: remove cross.toml
1 parent 3dfe949 commit 1fb268a

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

Cargo.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ edition = "2021"
55
build = "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"]
1111
vendored_postgres = ["pq-sys/bundled"]
1212
vendored_sqlite = ["libsqlite3-sys/bundled"]
1313
vendored_mysql = ["mysqlclient-sys/bundled"]
@@ -60,9 +60,11 @@ diesel = { version = "2.2.4", features = [
6060
"chrono",
6161
] }
6262
diesel_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
6870
chrono = { version = "0.4.38", features = ["serde"] }

Cross.toml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)