From 325e73115f4ee5e4f7e83242d62b5ff3be6a7870 Mon Sep 17 00:00:00 2001 From: Harry Maclean Date: Sat, 6 Jan 2024 18:42:40 +0000 Subject: [PATCH] feat: allow sqlx with rustls instead of native-tls --- Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1dcc724..94b39c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,8 +18,8 @@ default-members = ["."] resolver = "2" [features] -default = [] -sqlx = ["dep:sqlx", "sqlx?/tls-native-tls"] +default = ["native-tls"] +sqlx = ["dep:sqlx"] diesel = ["dep:diesel", "dep:diesel_migrations"] macros = [] runtime-async-std = ["sqlx?/runtime-async-std", "dep:async-std"] @@ -28,6 +28,9 @@ sqlite = ["sqlx?/sqlite", "diesel?/sqlite", "diesel_migrations?/sqlite"] mysql = ["sqlx?/mysql", "diesel?/mysql", "diesel_migrations?/mysql", "url", "percent-encoding"] postgres = ["sqlx?/postgres", "diesel?/postgres", "url", "percent-encoding"] +native-tls = ["sqlx?/tls-native-tls"] +rustls = ["sqlx?/tls-rustls"] + [dependencies] async-std = { version = "1", optional = true } # this has to include default due to task::block_on usage chrono = { version = "0.4", features = ["clock"], default-features = false }