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.
This commit is contained in:
guenhter 2024-08-23 11:24:25 +02:00
parent 3bf9ef02d6
commit 62d4a72f40
1 changed files with 14 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "rocket_db_pools" name = "rocket_db_pools"
version = "0.1.0" version = "0.2.1"
authors = ["Sergio Benitez <sb@sergio.bz>", "Jeb Rosen <jeb@jebrosen.com>"] authors = ["Sergio Benitez <sb@sergio.bz>", "Jeb Rosen <jeb@jebrosen.com>"]
description = "Rocket async database pooling support" description = "Rocket async database pooling support"
repository = "https://github.com/rwf2/Rocket/tree/master/contrib/db_pools" repository = "https://github.com/rwf2/Rocket/tree/master/contrib/db_pools"
@ -26,8 +26,18 @@ sqlx_postgres = ["sqlx", "sqlx/postgres", "log"]
sqlx_sqlite = ["sqlx", "sqlx/sqlite", "log"] sqlx_sqlite = ["sqlx", "sqlx/sqlite", "log"]
sqlx_macros = ["sqlx/macros"] sqlx_macros = ["sqlx/macros"]
# diesel features # diesel features
diesel_postgres = ["diesel-async/postgres", "diesel-async/deadpool", "deadpool", "diesel"] diesel_postgres = [
diesel_mysql = ["diesel-async/mysql", "diesel-async/deadpool", "deadpool", "diesel"] "diesel-async/postgres",
"diesel-async/deadpool",
"deadpool",
"diesel",
]
diesel_mysql = [
"diesel-async/mysql",
"diesel-async/deadpool",
"deadpool",
"diesel",
]
# implicit features: mongodb # implicit features: mongodb
[dependencies.rocket] [dependencies.rocket]
@ -77,7 +87,7 @@ optional = true
[dependencies.sqlx] [dependencies.sqlx]
version = "0.8" version = "0.8"
default-features = false default-features = false
features = ["runtime-tokio-rustls"] features = ["runtime-tokio"]
optional = true optional = true
[dependencies.log] [dependencies.log]