From ddcdecef5c9eecf32ad30722a7008afab8365cbd Mon Sep 17 00:00:00 2001 From: jmjoy Date: Thu, 11 Aug 2022 16:53:31 +0800 Subject: [PATCH] Add feature default-tls. --- Cargo.toml | 9 +++++---- README.md | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3c65665..5cba09c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "apollo-client" -version = "0.7.2" +version = "0.7.3" authors = ["jmjoy <918734043@qq.com>"] edition = "2021" rust-version = "1.56" -description = "Rust🦀 client for Ctrip Apollo." +description = "Ctrip Apollo client for Rust🦀." repository = "https://github.com/jmjoy/apollo-client" documentation = "https://docs.rs/apollo-client" license = "Unlicense" @@ -19,7 +19,8 @@ exclude = [ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] -default = ["conf"] +default = ["conf", "default-tls"] +default-tls = ["reqwest/default-tls"] conf = ["async-stream", "rust-ini", "host"] host = ["host-ip", "host-name"] host-ip = ["systemstat", "cidr-utils"] @@ -41,7 +42,7 @@ hostname = { version = "0.3.1", optional = true } http = "0.2.4" log = "0.4.14" once_cell = "1.8.0" -reqwest = { version = "0.11.4", features = ["cookies", "json"] } +reqwest = { version = "0.11.4", features = ["cookies", "json"], default-features = false } rust-ini = { version = "0.17.0", optional = true } serde = "1.0.126" serde_json = { version = "1.0.64", features = ["preserve_order"] } diff --git a/README.md b/README.md index adfe8eb..77b8134 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Lines](https://img.shields.io/tokei/lines/github/jmjoy/apollo-client)](https://github.com/jmjoy/apollo-client) [![License](https://img.shields.io/crates/l/apollo-client)](https://github.com/jmjoy/apollo-client/blob/master/LICENSE) -Rust🦀 client for [Ctrip Apollo](https://github.com/ctripcorp/apollo). +[Ctrip Apollo](https://github.com/ctripcorp/apollo) client for Rust🦀. Power by Rust `async/await`.