diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e7aa7bc71ab9..05f163223738 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -46,11 +46,22 @@ jobs: - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true - - run: - cargo clippy --workspace --lib --examples --tests --benches --all-features + - run: cargo clippy --workspace --lib --examples --tests --benches --all-features env: RUSTFLAGS: -D warnings + crate-checks: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: taiki-e/install-action@cargo-hack + - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + - run: cargo hack check + msrv: name: MSRV / ${{ matrix.network }} runs-on: ubuntu-latest @@ -120,7 +131,7 @@ jobs: name: lint success runs-on: ubuntu-latest if: always() - needs: [clippy-binaries, clippy, docs, fmt, grafana] + needs: [clippy-binaries, clippy, crate-checks, docs, fmt, grafana] timeout-minutes: 30 steps: - name: Decide whether the needed jobs succeeded or failed diff --git a/crates/ethereum-forks/Cargo.toml b/crates/ethereum-forks/Cargo.toml index ab27355fe263..4b3cd8f27101 100644 --- a/crates/ethereum-forks/Cargo.toml +++ b/crates/ethereum-forks/Cargo.toml @@ -14,17 +14,16 @@ workspace = true [dependencies] # ethereum alloy-chains.workspace = true -alloy-primitives = { workspace = true, features = ["rand", "rlp"] } -alloy-rlp = { workspace = true, features = ["arrayvec"] } +alloy-primitives = { workspace = true, features = ["serde", "rand", "rlp"] } +alloy-rlp = { workspace = true, features = ["arrayvec", "derive"] } # used for forkid crc = "3" # misc -serde.workspace = true +serde = { workspace = true, features = ["derive"] } thiserror.workspace = true - # arbitrary utils arbitrary = { workspace = true, features = ["derive"], optional = true } proptest = { workspace = true, optional = true } @@ -36,7 +35,6 @@ arbitrary = { workspace = true, features = ["derive"] } proptest.workspace = true proptest-derive.workspace = true - [features] arbitrary = ["dep:arbitrary", "dep:proptest", "dep:proptest-derive"] optimism = []