Skip to content

[Bug] Build fails with serde version #2885

@nakul1010

Description

@nakul1010

Component

consensus, eips, genesis

What version of Alloy are you on?

1.0.31

Operating System

None

Describe the bug

My Cargo.toml

alloy = { version = "1.0.31", features = [
    "full",
    "node-bindings",
    "rpc-types-debug",
    "rpc-types-trace",
    "json-rpc",
    "rpc-client",
    "signer-aws",
    "signer-keystore",
    "signer-ledger",
    "signer-mnemonic",
    "signer-trezor",
    "signer-yubihsm",
    "eips",
    "sol-types",
    "contract",
    "serde",
] }

serde = "1.0.223"
serde_json = "1.0"

Error when running cargo build

error[E0433]: failed to resolve: could not find `__private` in `serde`
   --> /Users/nakul/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/alloy-consensus-1.0.31/src/transaction/envelope.rs:162:24
    |
162 | #[derive(Clone, Debug, TransactionEnvelope)]
    |                        ^^^^^^^^^^^^^^^^^^^ could not find `__private` in `serde`
    |
    = note: this error originates in the derive macro `TransactionEnvelope` (in Nightly builds, run with -Z macro-backtrace for more info)

Already tried cargo clean && rm Cargo.lock && cargo build

I assumed it was fixed in the latest version with the following PR: #2875
cc: @DaniPopes @klkvr

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