Make disabling tls fully optional, but on by default

This commit is contained in:
Matthew Pomes 2024-12-07 10:56:08 -06:00
parent 2acf6bfbe3
commit 5b33d50133
No known key found for this signature in database
GPG Key ID: B8C0D93B8D8FBDB7

View File

@ -17,6 +17,10 @@ all-features = true
workspace = true
[features]
default = [
"sqlx?/runtime-tokio-rustls",
"mongodb?/rustls-tls",
]
# deadpool features
deadpool_postgres = ["deadpool-postgres", "deadpool"]
deadpool_redis = ["deadpool-redis", "deadpool"]
@ -70,7 +74,7 @@ optional = true
[dependencies.mongodb]
version = "3"
default-features = false
features = ["compat-3-0-0", "rustls-tls"]
features = ["compat-3-0-0"]
optional = true
[dependencies.diesel-async]