From a66204a58bca4cb58abe828b85284d30c0f5b100 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Wed, 28 Apr 2021 17:56:44 -0700 Subject: [PATCH] Bump sqlx & expose feature rustls flag. --- Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 327bb41..7f308af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,9 +15,8 @@ members = ["sqlxmq_macros", "sqlxmq_stress"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -sqlx = { version = "0.5.1", features = [ +sqlx = { version = "0.5.2", features = [ "postgres", - "runtime-tokio-native-tls", "chrono", "uuid", ] } @@ -30,6 +29,11 @@ serde_json = "1.0.64" serde = "1.0.124" sqlxmq_macros = { version = "0.1", path = "sqlxmq_macros" } +[features] +default = ["runtime-tokio-native-tls"] +runtime-tokio-native-tls = ["sqlx/runtime-tokio-native-tls"] +runtime-tokio-rustls = ["sqlx/runtime-tokio-rustls"] + [dev-dependencies] dotenv = "0.15.0" pretty_env_logger = "0.4.0"