diff --git a/.github/workflows/rust_ci.yaml b/.github/workflows/rust_ci.yaml index 912811b1f..bfd2afcd3 100644 --- a/.github/workflows/rust_ci.yaml +++ b/.github/workflows/rust_ci.yaml @@ -130,3 +130,21 @@ jobs: run: just lint-docs - name: doctest run: just test-docs + cargo-hack: + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - name: Checkout sources + uses: actions/checkout@v4 + with: + submodules: true + token: ${{ secrets.PAT_TOKEN }} + - uses: taiki-e/install-action@just + - name: Install Rust stable toolchain + uses: dtolnay/rust-toolchain@stable + - uses: taiki-e/install-action@cargo-hack + - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + - name: cargo hack + run: just hack diff --git a/crates/derive/Cargo.toml b/crates/derive/Cargo.toml index bec0ea5ef..32b2cad73 100644 --- a/crates/derive/Cargo.toml +++ b/crates/derive/Cargo.toml @@ -74,6 +74,7 @@ online = [ "alloy-provider/reqwest", "alloy-consensus/serde", "kona-primitives/online", + "kona-primitives/serde", ] test-utils = [ "dep:spin", diff --git a/justfile b/justfile index 5f4755d12..548907ecf 100644 --- a/justfile +++ b/justfile @@ -6,6 +6,7 @@ alias f := fmt-native-fix alias b := build alias d := docker-build-ts alias r := docker-run-ts +alias h := hack # default recipe to display help information default: @@ -14,6 +15,10 @@ default: # Run all tests tests: test test-docs +# Runs `cargo hack check` against the workspace +hack: + cargo hack check --feature-powerset --no-dev-deps + # Test for the native target with all features test *args='': cargo nextest run --workspace --all --all-features $@