Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c115799
pow%build!: drop `aes_hw`, take hardware AES on aarch64 and x86_64
kwvg Oct 12, 2026
e7a384a
pow%refac(aes): move AES from `util` to the crate root
kwvg Oct 13, 2026
177d32e
pow%refac(aes): put every AES backend behind one block interface
kwvg Oct 10, 2026
a61d839
pow%refac(shavite): run AES rounds through the block interface
kwvg Oct 10, 2026
219346a
pow%refac(echo): run AES rounds through the block interface
kwvg Oct 10, 2026
f420e34
pow%refac(groestl): run AES rounds through the block interface
kwvg Oct 10, 2026
710bd1b
pow%lint: require `SAFETY` comments on `unsafe` blocks
kwvg Oct 10, 2026
7027c5d
pow%test(bench): benchmark the selected backend of each algorithm
kwvg Oct 12, 2026
df92c6f
pow%refac(blake)!: drop scalar backend, inline KAT test
kwvg Oct 12, 2026
3d2c2e8
pow%refac(bmw)!: drop scalar backend, inline KAT test
kwvg Oct 12, 2026
6c2cc39
pow%refac(groestl)!: use `wide`, drop scalar backend, inline KAT test
kwvg Oct 7, 2026
a4b7fb5
pow%refac(skein)!: drop scalar backend, inline KAT test
kwvg Oct 12, 2026
82b7bb8
pow%refac(jh)!: use `wide`, drop scalar backend, inline KAT test
kwvg Oct 7, 2026
2c4a2f4
pow%refac(keccak)!: drop scalar backend, inline KAT test
kwvg Oct 12, 2026
681734e
pow%refac(luffa)!: use `wide`, drop scalar backend, inline KAT test
kwvg Oct 7, 2026
2d419d4
pow%refac(cubehash)!: use `wide`, drop scalar backend, inline KAT test
kwvg Oct 7, 2026
4132272
pow%refac(shavite)!: drop scalar backend, inline KAT test
kwvg Oct 12, 2026
6623555
pow%refac(simd)!: rename `simd_hash`, use `wide`, drop scalar backend
kwvg Oct 7, 2026
5f49744
pow%refac(echo)!: drop scalar backend, inline KAT test
kwvg Oct 12, 2026
46be011
pow%build!: drop `simd`, every target builds the `wide` backends
kwvg Oct 10, 2026
28ca03e
pow%refac(util): serialise every digest through one helper per word size
kwvg Oct 12, 2026
167cb2d
pow%refac: split every message into blocks with `as_chunks`
kwvg Oct 12, 2026
b85053b
pow%refac: keep HAIFA counters in a `u128`, write sizes as integers
kwvg Oct 12, 2026
38e6939
pow%refac(keccak): drop the permutation-generic sponge for `hash512`
kwvg Oct 12, 2026
2eb3dd3
pow%refac: expose only `hash512` of each algorithm
kwvg Oct 12, 2026
a30c69e
sdk%ci: build and test every feature on the MSRV, lint on `nightly`
kwvg Oct 11, 2026
e659d41
pow%doc: document features and required target features
kwvg Oct 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 53 additions & 11 deletions .github/workflows/build_msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ jobs:
key: cargo-deps-${{ hashFiles('Cargo.lock', 'docs/samples/Cargo.lock') }}
restore-keys: cargo-deps-

- name: Manage build artifacts
uses: actions/cache@v5
with:
path: target
key: cargo-build-lint-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }}
restore-keys: |
cargo-build-lint-${{ runner.os }}-${{ runner.arch }}-

- name: Manage CodeQL packs
uses: actions/cache@v5
with:
Expand All @@ -70,6 +78,9 @@ jobs:
- name: Run linters
run: just lint

- name: Lint every feature combination
run: cargo hack --workspace --exclude-features default --feature-powerset clippy --all-targets -- -D warnings

- name: Check PR title
if: github.event_name == 'pull_request'
env:
Expand All @@ -85,6 +96,8 @@ jobs:
build:
name: Build and test
runs-on: ubuntu-24.04-arm
env:
HAS_CODECOV: ${{ secrets.CODECOV_TOKEN != '' }}

defaults:
run:
Expand Down Expand Up @@ -133,21 +146,50 @@ jobs:
- name: Manage build artifacts
uses: actions/cache@v5
with:
path: target
path: |
target
!target/nextest
key: cargo-build-msrv-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }}
restore-keys: |
cargo-build-msrv-${{ runner.os }}-${{ runner.arch }}-

- name: Build workspace
- name: Select the MSRV toolchain
run: |
export RUSTC="$TOOLCHAIN_MSRV/bin/rustc"
export RUSTDOC="$TOOLCHAIN_MSRV/bin/rustdoc"
"$TOOLCHAIN_MSRV/bin/cargo" build --workspace --exclude dash-pow --features full
"$TOOLCHAIN_MSRV/bin/cargo" build -p dash-pow --features std
{
echo "RUSTC=$TOOLCHAIN_MSRV/bin/rustc"
echo "RUSTDOC=$TOOLCHAIN_MSRV/bin/rustdoc"
echo "CARGO=$TOOLCHAIN_MSRV/bin/cargo"
} >> "$GITHUB_ENV"

- name: Test workspace
- name: Build every feature
run: '"$CARGO" hack --workspace --exclude-features default --each-feature build'

- name: Test every feature
run: |
"$CARGO" hack --workspace --exclude-features default --each-feature nextest run --config-file .cargo/nextest.toml --no-tests=warn
"$CARGO" hack --workspace --exclude-features default --each-feature test --doc

- name: Test workspace (with coverage)
run: |
export RUSTC="$TOOLCHAIN_MSRV/bin/rustc"
export RUSTDOC="$TOOLCHAIN_MSRV/bin/rustdoc"
"$TOOLCHAIN_MSRV/bin/cargo" test --workspace --exclude dash-pow --features full
"$TOOLCHAIN_MSRV/bin/cargo" test -p dash-pow --features std
"$CARGO" llvm-cov clean --workspace
"$CARGO" llvm-cov --no-report nextest --config-file .cargo/nextest.toml --workspace --features full
"$CARGO" llvm-cov report --lcov --output-path lcov.info

- name: Upload coverage to Codecov
if: env.HAS_CODECOV == 'true'
uses: codecov/codecov-action@v5
with:
files: lcov.info
flags: dash-num,dash-p2p-core,dash-params,dash-pkc,dash-pow,dash-primitives,dash-script,dash-types
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to Codecov
if: ${{ !cancelled() && env.HAS_CODECOV == 'true' && hashFiles('target/nextest/default/junit.xml') != '' }}
uses: codecov/codecov-action@v5
with:
files: target/nextest/default/junit.xml
report_type: test_results
token: ${{ secrets.CODECOV_TOKEN }}

- name: Sanity check benchmarks
run: '"$CARGO" hack --workspace --exclude-features default --each-feature test --benches'
141 changes: 0 additions & 141 deletions .github/workflows/build_nightly.yml

This file was deleted.

23 changes: 9 additions & 14 deletions .github/workflows/build_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ on:
description: Package directory relative to pkgs/ (e.g. num)
required: true
type: string
features:
description: Cargo features to enable (default full)
required: false
type: string
default: full

permissions:
contents: read
Expand Down Expand Up @@ -56,6 +51,11 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install cargo-hack
uses: taiki-e/install-action@v2
with:
tool: cargo-hack

- name: Manage cargo registry
uses: actions/cache@v5
with:
Expand All @@ -73,17 +73,12 @@ jobs:
restore-keys: |
cargo-build-stable-${{ runner.os }}-${{ runner.arch }}-${{ inputs.package }}-

- name: Build package
run: cargo build -p ${{ inputs.package }} --features ${{ inputs.features }}
env:
RUSTUP_TOOLCHAIN: stable

- name: Build package without default features
run: cargo build -p ${{ inputs.package }} --no-default-features
- name: Build every feature
run: cargo hack -p ${{ inputs.package }} --exclude-features default --each-feature build
env:
RUSTUP_TOOLCHAIN: stable

- name: Test package
run: cargo test -p ${{ inputs.package }} --features ${{ inputs.features }}
- name: Test every feature
run: cargo hack -p ${{ inputs.package }} --exclude-features default --each-feature test
env:
RUSTUP_TOOLCHAIN: stable
8 changes: 0 additions & 8 deletions .github/workflows/pkg_num.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- Cargo.toml
- .github/workflows/pkg_num.yml
- .github/workflows/build_stable.yml
- .github/workflows/build_nightly.yml
- contrib/nix/**
- pyproject.toml
- rust-toolchain.toml
Expand All @@ -27,10 +26,3 @@ jobs:
with:
package: dash-num
package_dir: num

nightly:
uses: ./.github/workflows/build_nightly.yml
with:
package: dash-num
package_dir: num
secrets: inherit
8 changes: 0 additions & 8 deletions .github/workflows/pkg_p2p_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
- Cargo.toml
- .github/workflows/pkg_p2p_core.yml
- .github/workflows/build_stable.yml
- .github/workflows/build_nightly.yml
- contrib/nix/**
- pyproject.toml
- rust-toolchain.toml
Expand All @@ -32,10 +31,3 @@ jobs:
with:
package: dash-p2p-core
package_dir: p2p_core

nightly:
uses: ./.github/workflows/build_nightly.yml
with:
package: dash-p2p-core
package_dir: p2p_core
secrets: inherit
8 changes: 0 additions & 8 deletions .github/workflows/pkg_params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- Cargo.toml
- .github/workflows/pkg_params.yml
- .github/workflows/build_stable.yml
- .github/workflows/build_nightly.yml
- contrib/nix/**
- pyproject.toml
- rust-toolchain.toml
Expand All @@ -30,10 +29,3 @@ jobs:
with:
package: dash-params
package_dir: params

nightly:
uses: ./.github/workflows/build_nightly.yml
with:
package: dash-params
package_dir: params
secrets: inherit
8 changes: 0 additions & 8 deletions .github/workflows/pkg_pkc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- Cargo.toml
- .github/workflows/pkg_pkc.yml
- .github/workflows/build_stable.yml
- .github/workflows/build_nightly.yml
- contrib/nix/**
- pyproject.toml
- rust-toolchain.toml
Expand All @@ -29,10 +28,3 @@ jobs:
with:
package: dash-pkc
package_dir: pkc

nightly:
uses: ./.github/workflows/build_nightly.yml
with:
package: dash-pkc
package_dir: pkc
secrets: inherit
9 changes: 0 additions & 9 deletions .github/workflows/pkg_pow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- Cargo.toml
- .github/workflows/pkg_pow.yml
- .github/workflows/build_stable.yml
- .github/workflows/build_nightly.yml
- contrib/nix/**
- pyproject.toml
- rust-toolchain.toml
Expand All @@ -28,11 +27,3 @@ jobs:
with:
package: dash-pow
package_dir: pow
features: std

nightly:
uses: ./.github/workflows/build_nightly.yml
with:
package: dash-pow
package_dir: pow
secrets: inherit
8 changes: 0 additions & 8 deletions .github/workflows/pkg_primitives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- Cargo.toml
- .github/workflows/pkg_primitives.yml
- .github/workflows/build_stable.yml
- .github/workflows/build_nightly.yml
- contrib/nix/**
- pyproject.toml
- rust-toolchain.toml
Expand All @@ -30,10 +29,3 @@ jobs:
with:
package: dash-primitives
package_dir: primitives

nightly:
uses: ./.github/workflows/build_nightly.yml
with:
package: dash-primitives
package_dir: primitives
secrets: inherit
Loading
Loading