From 3e099564528a1b59412203094486d3c200b17747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Thu, 25 Apr 2024 14:35:15 +0200 Subject: [PATCH] Remove reqwest wildcard dependency (#737) ## Type of change ``` - [x] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ``` ## Objective Remove wildcard dep that forbids publishing to crates.io. Set the version to the same one used everywhere else. (cherry picked from commit 9d64232aa87adf09affff5338c8031dfab3897d0) --- crates/bitwarden/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bitwarden/Cargo.toml b/crates/bitwarden/Cargo.toml index b34f9c9a1..179861509 100644 --- a/crates/bitwarden/Cargo.toml +++ b/crates/bitwarden/Cargo.toml @@ -68,7 +68,7 @@ zxcvbn = ">= 2.2.2, <3.0" # There are a few exceptions to this: # - WASM doesn't require a TLS stack, as it just uses the browsers/node fetch # - Android uses webpki-roots for the moment -reqwest = { version = "*", features = [ +reqwest = { version = ">=0.12, <0.13", features = [ "rustls-tls-manual-roots", ], default-features = false } rustls-platform-verifier = "0.2.0" @@ -76,7 +76,7 @@ rustls-platform-verifier = "0.2.0" [target.'cfg(target_os = "android")'.dependencies] # On android, the use of rustls-platform-verifier is more complicated and going through some changes at the moment, so we fall back to using webpki-roots # This means that for the moment android won't support self-signed certificates, even if they are included in the OS trust store -reqwest = { version = "*", features = [ +reqwest = { version = ">=0.12, <0.13", features = [ "rustls-tls-webpki-roots", ], default-features = false }