alloy-rs / core

High-performance, well-tested & documented core libraries for Ethereum, in Rust
https://alloy.rs
Apache License 2.0
779 stars 146 forks source link

[Bug] compilation broken on version 0.5.2 when `contract` feature is enabled #778

Closed klefevre closed 1 hour ago

klefevre commented 4 hours ago

Component

json-abi

What version of Alloy are you on?

0.5.2

Operating System

macOS (Apple Silicon)

Describe the bug

The 0.8.9 version of the alloy-json-abi crate is broken (I didn't check previous version).

To reproduce:

cargo new test-alloy
cd test-alloy
cargo add alloy --features contract
cargo build
markjung96 commented 2 hours ago

I also encountered same issue.

mertwole commented 1 hour ago

Same issue for me. Also this issue persists for versions 0.2.0, 0.3.0 and 0.4.0. I believe it's caused by https://github.com/serde-rs/serde/issues/2844 . I've tried pinning minor version of serde by doing serde = "=1.0.210" in Cargo.toml and it resolved problem for me.

DaniPopes commented 1 hour ago

This is a bug in serde: https://github.com/serde-rs/serde/issues/2844.

The temporary fix is to pin in Cargo.toml as explained above, or locally:

cargo update -p serde --precise 1.0.210 && cargo update -p serde_derive --precise 1.0.210