From bbfa08fd7518b8c3e5e1e2e82cee9513c9cfe77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Mon, 10 Apr 2023 10:52:33 +0200 Subject: [PATCH] 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 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index eca93cb..3814307 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] }