Use native-tls instead of rustls

Rustls uses ring, which does not declare an SPDX license. Because of
that, cargo deny signals this license as incompatible.

The correct change would be to completely disable TLS since it is
neither used nor needed, however `sqlx` does not currently support that.

https://github.com/launchbadge/sqlx/issues/914
https://github.com/launchbadge/sqlx/issues/1750
This commit is contained in:
Rodolphe Bréard 2023-04-10 10:52:33 +02:00
parent eb2cce8edb
commit bbfa08fd75

View file

@ -17,6 +17,6 @@ log = { version = "0.4.17", default-features = false }
nom = { version = "7.1.3", default-features = false }
rand = { version = "0.8.5", default-features = false, features = ["std"] }
rsa = { version = "0.8.2", default-features = false, features = ["std"] }
sqlx = { version = "0.6.3", default-features = false, features = ["runtime-tokio-rustls", "macros", "migrate", "sqlite", "time"] }
sqlx = { version = "0.6.3", default-features = false, features = ["runtime-tokio-native-tls", "macros", "migrate", "sqlite", "time"] }
tokio = { version = "1.27.0", default-features = false, features = ["rt-multi-thread", "io-std", "io-util", "macros", "sync", "time", "process"] }
uuid = { version = "1.3.1", default-features = false, features = ["v4", "fast-rng"] }