Skip to content

Commit 62d4a72

Browse files
committed
Not enable the rustls feature by default for sqlx
DB's like sqlite not need the tls feature with sqlx at all. When cross compiling e.g. to i586, ring is not supported and therefore the db-pool cannot be used because the rustls feature is turned on by default even though not needed.
1 parent 3bf9ef0 commit 62d4a72

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

contrib/db_pools/lib/Cargo.toml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rocket_db_pools"
3-
version = "0.1.0"
3+
version = "0.2.1"
44
authors = ["Sergio Benitez <sb@sergio.bz>", "Jeb Rosen <jeb@jebrosen.com>"]
55
description = "Rocket async database pooling support"
66
repository = "https://github.com/rwf2/Rocket/tree/master/contrib/db_pools"
@@ -26,8 +26,18 @@ sqlx_postgres = ["sqlx", "sqlx/postgres", "log"]
2626
sqlx_sqlite = ["sqlx", "sqlx/sqlite", "log"]
2727
sqlx_macros = ["sqlx/macros"]
2828
# diesel features
29-
diesel_postgres = ["diesel-async/postgres", "diesel-async/deadpool", "deadpool", "diesel"]
30-
diesel_mysql = ["diesel-async/mysql", "diesel-async/deadpool", "deadpool", "diesel"]
29+
diesel_postgres = [
30+
"diesel-async/postgres",
31+
"diesel-async/deadpool",
32+
"deadpool",
33+
"diesel",
34+
]
35+
diesel_mysql = [
36+
"diesel-async/mysql",
37+
"diesel-async/deadpool",
38+
"deadpool",
39+
"diesel",
40+
]
3141
# implicit features: mongodb
3242

3343
[dependencies.rocket]
@@ -77,7 +87,7 @@ optional = true
7787
[dependencies.sqlx]
7888
version = "0.8"
7989
default-features = false
80-
features = ["runtime-tokio-rustls"]
90+
features = ["runtime-tokio"]
8191
optional = true
8292

8393
[dependencies.log]

0 commit comments

Comments
 (0)