Skip to content

fix: upgrade alloy to 1.8 and reqwest to 0.13 to fix compilation#45

Merged
keanji-x merged 2 commits intomainfrom
fix/reqwest-version-conflict
Mar 26, 2026
Merged

fix: upgrade alloy to 1.8 and reqwest to 0.13 to fix compilation#45
keanji-x merged 2 commits intomainfrom
fix/reqwest-version-conflict

Conversation

@ByteYue
Copy link
Copy Markdown
Contributor

@ByteYue ByteYue commented Mar 26, 2026

Problem

alloy =1.0 resolved to 1.0.42 which internally pulled mismatched sub-crate versions:

  • alloy-provider 1.6.3 → depends on reqwest 0.12
  • alloy-rpc-client 1.8.2 → depends on reqwest 0.13

Two different versions of reqwest::Client coexisted, causing a type mismatch error in alloy-provider's http_with_client() call:

error[E0308]: mismatched types
  --> alloy-provider/src/builder.rs:548:64
note: two different versions of crate reqwest are being used

This broke gravity-sdk CI: https://github.com/Galxe/gravity-sdk/actions/runs/23585608675/job/68677899532

Fix

  • Upgrade alloy from =1.0 to 1.8 (resolves to 1.8.2 with all consistent sub-crates)
  • Upgrade reqwest from 0.12 to 0.13
  • Remove deprecated feature flags: rpc-types-json, json-rpc, hyper
  • Commit Cargo.lock for reproducible builds

ByteYue added 2 commits March 26, 2026 19:32
alloy =1.0 resolved to 1.0.42 which pulled mismatched sub-crate
versions: alloy-provider 1.6.3 (reqwest 0.12) alongside
alloy-rpc-client 1.8.2 (reqwest 0.13). This caused a type mismatch
error in alloy-provider's http_with_client() call.

Changes:
- Upgrade alloy from =1.0 to 1.8 (resolves to 1.8.2 with consistent
  sub-crate versions)
- Upgrade reqwest from 0.12 to 0.13
- Remove deprecated feature flags: rpc-types-json, json-rpc, hyper
@keanji-x keanji-x merged commit f40cbdd into main Mar 26, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants