Skip to content

Commit

Permalink
Not enable the rustls feature by default for sqlx
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guenhter committed Sep 3, 2024
1 parent 3bf9ef0 commit 62d4a72
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions contrib/db_pools/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_db_pools"
version = "0.1.0"
version = "0.2.1"
authors = ["Sergio Benitez <sb@sergio.bz>", "Jeb Rosen <jeb@jebrosen.com>"]
description = "Rocket async database pooling support"
repository = "https://github.com/rwf2/Rocket/tree/master/contrib/db_pools"
Expand All @@ -26,8 +26,18 @@ sqlx_postgres = ["sqlx", "sqlx/postgres", "log"]
sqlx_sqlite = ["sqlx", "sqlx/sqlite", "log"]
sqlx_macros = ["sqlx/macros"]
# diesel features
diesel_postgres = ["diesel-async/postgres", "diesel-async/deadpool", "deadpool", "diesel"]
diesel_mysql = ["diesel-async/mysql", "diesel-async/deadpool", "deadpool", "diesel"]
diesel_postgres = [
"diesel-async/postgres",
"diesel-async/deadpool",
"deadpool",
"diesel",
]
diesel_mysql = [
"diesel-async/mysql",
"diesel-async/deadpool",
"deadpool",
"diesel",
]
# implicit features: mongodb

[dependencies.rocket]
Expand Down Expand Up @@ -77,7 +87,7 @@ optional = true
[dependencies.sqlx]
version = "0.8"
default-features = false
features = ["runtime-tokio-rustls"]
features = ["runtime-tokio"]
optional = true

[dependencies.log]
Expand Down

0 comments on commit 62d4a72

Please sign in to comment.