fix: add reqwest to patch list, sync with primp 1.2.0

primp 1.2.0 moved to reqwest 0.13 and now patches reqwest itself
(primp-reqwest). Without this patch, cargo install gets vanilla
reqwest 0.13 which is missing the HTTP/2 impersonation methods.

Users should use: cargo install --locked --git ...

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Valerio 2026-03-27 18:45:28 +01:00
parent 2f6255fe6f
commit 76cb6b6cd7
2 changed files with 149 additions and 44 deletions

View file

@ -22,8 +22,10 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
clap = { version = "4", features = ["derive", "env"] }
dotenvy = "0.15"
# primp requires patched forks with TLS impersonation support
# primp requires patched forks with TLS impersonation support.
# Must mirror all patches from primp's own Cargo.toml.
[patch.crates-io]
reqwest = { git = "https://github.com/deedy5/primp", subdirectory = "crates/primp-reqwest" }
rustls = { git = "https://github.com/deedy5/primp", subdirectory = "crates/primp-rustls/rustls" }
h2 = { git = "https://github.com/deedy5/primp", subdirectory = "crates/primp-h2" }
hyper = { git = "https://github.com/deedy5/primp", subdirectory = "crates/primp-hyper" }