Repository navigation
chore(deps): update rust crate alloy to v2 - #27
renovate[bot] wants to merge 1 commit into
Conversation
3f6e13a to
d3a2694
Compare
62e42ba to
9ee4b2d
Compare
9ee4b2d to
535c0df
Compare
535c0df to
a7f9b9d
Compare
a7f9b9d to
b6fac5d
Compare
darkmatteragent
left a comment
There was a problem hiding this comment.
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.
|
|
||
| [workspace.dependencies] | ||
| alloy = { version = "0.2.1", default-features = false, features = [ | ||
| alloy = { version = "2.0.0", default-features = false, features = [ |
There was a problem hiding this comment.
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.
94784b9 to
7d627e5
Compare
darkmatteragent
left a comment
There was a problem hiding this comment.
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.
|
|
||
| [workspace.dependencies] | ||
| alloy = { version = "0.2.1", default-features = false, features = [ | ||
| alloy = { version = "2.0.0", default-features = false, features = [ |
There was a problem hiding this comment.
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.
7d627e5 to
05b3396
Compare
darkmatteragent
left a comment
There was a problem hiding this comment.
The HTTP provider still calls the removed on_http method
|
|
||
| [workspace.dependencies] | ||
| alloy = { version = "0.2.1", default-features = false, features = [ | ||
| alloy = { version = "2.0.0", default-features = false, features = [ |
There was a problem hiding this comment.
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.
| [[package]] | ||
| name = "alloy-sol-macro" | ||
| version = "0.7.7" | ||
| version = "1.7.3" |
There was a problem hiding this comment.
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.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
0.2.1→2.0.0Warning
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.0Compare Source
What's Changed
blob_from_data_cellsby @lean-apple in #4624New Contributors
Full Changelog: alloy-rs/alloy@v2.6.1...v2.7.0
v2.6.1: alloy v2.6.1Compare Source
What's Changed
Full Changelog: alloy-rs/alloy@v2.6.0...v2.6.1
v2.6.0: alloy v2.6.0Compare Source
What's Changed
ee2960aby @decofe in #4262d540228by @decofe in #4269uses to module scope by @joshieDo in #4478Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.