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"