Skip to content

[Bug] Build fails when with serde >= 1.0.220 #2876

@luca992

Description

@luca992

Component

serde

What version of Alloy are you on?

1.0.30

Operating System

macOS (Apple Silicon)

Describe the bug

Ran cargo update on my project alloy is failing to build with:

error[E0599]: no variant or associated item named `deserialize` found for enum `serde_core::__private::content::Content` in the current scope
   --> /Users/luca/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/alloy-consensus-1.0.30/src/transaction/envelope.rs:162:24
    |
162 | #[derive(Clone, Debug, TransactionEnvelope)]
    |                        ^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `serde_core::__private::content::Content<'_>`
    |
    = note: this error originates in the derive macro `TransactionEnvelope` (in Nightly builds, run with -Z macro-backtrace for more info)

If I force downgrade serde to 1.0.219 it works fine.

It's likely due to they new serde_core crate they added 1.0.220

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions