Skip to content

chore(deps): update rust crate alloy to v2 - #27

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/alloy-2.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/alloy-2.x

Conversation

@renovate

@renovate renovate Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Type Update Change
alloy workspace.dependencies major 0.2.1 → 2.0.0

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

alloy-rs/alloy (alloy)

v2.7.0: alloy v2.7.0

Compare Source

What's Changed

New Contributors

Full Changelog: alloy-rs/alloy@v2.6.1...v2.7.0

v2.6.1: alloy v2.6.1

Compare Source

What's Changed

Full Changelog: alloy-rs/alloy@v2.6.0...v2.6.1

v2.6.0: alloy v2.6.0

Compare Source

What's Changed

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/alloy-2.x branch from 3f6e13a to d3a2694 Compare October 13, 2026 18:56
@renovate renovate Bot changed the title Update Rust crate alloy to v2 chore(deps): update rust crate alloy to v2 Oct 13, 2026
@renovate
renovate Bot force-pushed the renovate/alloy-2.x branch 2 times, most recently from 62e42ba to 9ee4b2d Compare October 26, 2026 01:59
@renovate
renovate Bot force-pushed the renovate/alloy-2.x branch from 9ee4b2d to 535c0df Compare October 30, 2026 03:52
@renovate
renovate Bot force-pushed the renovate/alloy-2.x branch from 535c0df to a7f9b9d Compare November 6, 2026 11:06
@renovate
renovate Bot force-pushed the renovate/alloy-2.x branch from a7f9b9d to b6fac5d Compare November 16, 2026 15:45

@darkmatteragent darkmatteragent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency requirement and lockfile are consistent: Cargo may resolve the non-exact 2.0.0 requirement to 2.6.0. Traced the upgrade through the inheriting alloy-web3-example package, its provider/contract implementation, binary, and documented commands. Retained the consumer migration finding: the unchanged example uses APIs incompatible with the new Alloy version. No additional concrete defects were established; compiler-version and native/TLS prerequisite concerns remain unverified rather than separate findings. Build execution and upstream dependency source were unavailable.

Comment thread Cargo.toml

[workspace.dependencies]
alloy = { version = "0.2.1", default-features = false, features = [
alloy = { version = "2.0.0", default-features = false, features = [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 correctness: Migrate the existing Alloy consumer alongside the v2 upgrade

The workspace consumer still uses the old Alloy API: crates/alloy-web3-example/src/lib.rs:57 calls ProviderBuilder::new().on_http(...), whereas Alloy v2 uses connect_http. Its contract call also reads number._0 at line 76, but the newer generated call API returns the single uint256 directly instead of the old return wrapper. Because this package inherits the upgraded dependency, its library and binary no longer compile, including the documented cargo run -p alloy-web3-example and cargo test -p alloy-web3-example workflows. Migrate fetch_snapshot's provider construction and contract return handling together with the dependency bump.

@renovate
renovate Bot force-pushed the renovate/alloy-2.x branch 3 times, most recently from 94784b9 to 7d627e5 Compare November 24, 2026 21:24

@darkmatteragent darkmatteragent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency requirement and locked Alloy 2.6.1 resolution are consistent, but the upgrade leaves the inheriting example on incompatible Alloy 0.2 APIs. Retained one major integration finding after verifying the current manifest, implementation, binary caller, and documented run/test workflows. No additional defect is established by the native/TLS dependency changes or unchanged MSRV metadata alone. Build execution and upstream dependency source inspection were unavailable; API compatibility evidence includes the supplied migration review and the confirmed current consumer usages.

Comment thread Cargo.toml

[workspace.dependencies]
alloy = { version = "0.2.1", default-features = false, features = [
alloy = { version = "2.0.0", default-features = false, features = [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 correctness: Migrate the example's Alloy APIs with the dependency upgrade

alloy-web3-example inherits this dependency, but fetch_snapshot still calls ProviderBuilder::new().on_http(...) (src/lib.rs:57) and accesses number._0 after Counter.number().call() (line 76). The selected Alloy v2 API uses connect_http, and a single-value contract call returns U256 directly, not a return struct with _0. These remaining 0.2 usages prevent the library from compiling, including when no counter address is configured, breaking the documented cargo run -p alloy-web3-example and cargo test -p alloy-web3-example workflows. Adapt both usages alongside the version bump.

@renovate
renovate Bot force-pushed the renovate/alloy-2.x branch from 7d627e5 to 05b3396 Compare December 2, 2026 14:30

@darkmatteragent darkmatteragent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The HTTP provider still calls the removed on_http method

Comment thread Cargo.toml

[workspace.dependencies]
alloy = { version = "0.2.1", default-features = false, features = [
alloy = { version = "2.0.0", default-features = false, features = [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 correctness: The HTTP provider still calls the removed on_http method

The example inherits this dependency, and the head lockfile selects alloy-provider 2.7.0. fetch_snapshot still calls ProviderBuilder::new().on_http(...) at crates/alloy-web3-example/src/lib.rs:57, so it fails to compile before making any RPC requests. Replace on_http with connect_http and keep the existing URL parsing and error context.

Comment thread Cargo.lock
[[package]]
name = "alloy-sol-macro"
version = "0.7.7"
version = "1.7.3"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 correctness: The Counter read accesses a field that the new return type doesn't have

With the upgraded Alloy contract bindings, the generated Counter.number().call() returns the single Solidity uint256 directly as a U256. fetch_snapshot still reads number._0 at crates/alloy-web3-example/src/lib.rs:76, which fails to compile even when COUNTER_ADDRESS is unset. Store Some((address, number)) instead.

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.

1 participant