From af4ab396f0ad40f37ea065272101c81ac0b07a25 Mon Sep 17 00:00:00 2001 From: Arne Bahlo Date: Thu, 26 Jan 2023 11:23:00 +0100 Subject: [PATCH 1/2] Disable reqwest default features If you want to compile without OpenSSL you don't want that feature enabled. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 25eecc0..59bfef7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ include = ["src/**/*.rs", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] resolver = "2" [dependencies] -reqwest = { version = "0.11", features = ["json", "stream", "gzip", "blocking"] } +reqwest = { version = "0.11", default-features = false, features = ["json", "stream", "gzip", "blocking"] } serde = { version = "1", features = ["derive"] } serde_json = "1" chrono = { version = "0.4", features = ["serde"] } From c6f5c0fd22e92db34e8d253a71b4dbee032df9f5 Mon Sep 17 00:00:00 2001 From: Arne Bahlo Date: Thu, 26 Jan 2023 12:20:25 +0100 Subject: [PATCH 2/2] Enable default-tls feature in async-std test --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 847eaa9..875c433 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -59,7 +59,7 @@ jobs: include: - runtime: Tokio - runtime: async-std - flags: --no-default-features --features async-std + flags: --no-default-features --features async-std,default-tls steps: - uses: actions/checkout@v3 - uses: actions/cache@v3