Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
klefevre opened this issue Oct 22, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@klefevre
Copy link

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
@klefevre klefevre added the bug Something isn't working label Oct 22, 2024
@markjung96
Copy link

I also encountered same issue.

@mertwole
Copy link

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 serde-rs/serde#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
Copy link
Member

DaniPopes commented Oct 22, 2024

This is a bug in serde: serde-rs/serde#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants