From c978e9207e354454d62945edf9d963c27cb57552 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Sat, 15 Apr 2023 16:46:28 +0800 Subject: [PATCH] fix(client): use rustls-tls-webpki-roots instead of rustls-tls-native-roots for speed (#61) --- cli/Cargo.toml | 4 ++-- core/Cargo.toml | 4 ++-- driver/Cargo.toml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 788dc346c..f6de3c341 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bendsql" -version = "0.2.5" +version = "0.2.6" edition = "2021" license = "Apache-2.0" description = "Databend Native Command Line Tool" @@ -15,7 +15,7 @@ atty = "0.2.14" clap = { version = "4.1.0", features = ["derive", "env"] } comfy-table = "6.1.4" csv = "1.2.1" -databend-driver = { path = "../driver", version = "0.2.8", features = ["rustls", "flight-sql"] } +databend-driver = { path = "../driver", version = "0.2.10", features = ["rustls", "flight-sql"] } futures = { version = "0.3", default-features = false, features = ["alloc"] } humantime-serde = "1.1.1" indicatif = "0.17.3" diff --git a/core/Cargo.toml b/core/Cargo.toml index 5f9822014..0d39b329f 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "databend-client" -version = "0.1.9" +version = "0.1.10" edition = "2021" license = "Apache-2.0" description = "Databend Client for Rust" @@ -12,7 +12,7 @@ repository = "https://github.com/datafuselabs/databend-client" default = ["rustls"] # Enable rustls for TLS support -rustls = ["reqwest/rustls-tls-native-roots"] +rustls = ["reqwest/rustls-tls"] # Enable native-tls for TLS support native-tls = ["reqwest/native-tls"] diff --git a/driver/Cargo.toml b/driver/Cargo.toml index bd1e4919c..d0cd8771e 100644 --- a/driver/Cargo.toml +++ b/driver/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "databend-driver" -version = "0.2.9" +version = "0.2.10" edition = "2021" license = "Apache-2.0" description = "Databend Driver for Rust" @@ -21,7 +21,7 @@ flight-sql = ["dep:arrow", "dep:arrow-array", "dep:arrow-cast", "dep:arrow-fligh [dependencies] async-trait = "0.1.68" chrono = { version = "0.4.24", default-features = false, features = ["clock"] } -databend-client = { version = "0.1.9", path = "../core" } +databend-client = { version = "0.1.10", path = "../core" } dyn-clone = "1.0.11" http = "0.2.9" serde = { version = "1.0.156", default-features = false, features = ["derive"] } @@ -39,7 +39,7 @@ tonic = { version = "0.9.1", default-features = false, features = [ "transport", "codegen", "tls", - "tls-roots", + "tls-webpki-roots", "prost", ], optional = true }