From b175b0709cbe9c010b347947dd844d76cb9b4716 Mon Sep 17 00:00:00 2001 From: ZegWe Date: Tue, 14 May 2024 01:15:23 +0800 Subject: [PATCH] add `rustls` feature for cross compiling easier --- Cargo.toml | 2 +- ricq/Cargo.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 54401ed..62e3786 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ prost-types = "0.9" thiserror = "1" dynamic-protobuf = "0" -reqwest = "0.11" +reqwest = { version = "0.11", default-features = false } crypto-common = "0.1" serde_json = "1.0" block-padding = "0.3" diff --git a/ricq/Cargo.toml b/ricq/Cargo.toml index 7d623e8..1fc3b6c 100644 --- a/ricq/Cargo.toml +++ b/ricq/Cargo.toml @@ -12,6 +12,7 @@ keywords = ["qq", "protocol", "android", "mirai"] [features] default = [] image-detail = ["image"] +rustls = ["reqwest/rustls-tls"] [dependencies] ricq-core = { path = "../ricq-core" } @@ -30,5 +31,5 @@ serde = { workspace = true, features = ["derive"] } tokio = { workspace = true, features = ["rt", "macros", "net", "time"] } tokio-util = { workspace = true, features = ["codec"] } tracing.workspace = true -reqwest = { workspace = true, features = ["json"] } +reqwest = { workspace = true, default-features = false, features = ["json"] } async-recursion = "1.0" \ No newline at end of file