fix/ci: check individual crates in ci, fix features (#6472)

This commit is contained in:
DaniPopes
2024-02-07 21:35:01 +02:00
committed by GitHub
parent 29e8aab08a
commit 1f90f0a819
2 changed files with 17 additions and 8 deletions

View File

@ -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

View File

@ -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 = []