Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 1 addition & 7 deletions .github/workflows/ascon-hash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.56.0
msrv: 1.85.0

build:
needs: set-msrv
Expand All @@ -42,9 +42,6 @@ jobs:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cargo-hack-install@master
# TODO: remove after bump to MSRV 1.60+
- run: cargo update
- run: cargo update -p zeroize --precise 1.6.0
- run: cargo hack build --target ${{ matrix.target }} --each-feature --exclude-features default,std

minimal-versions:
Expand All @@ -67,7 +64,4 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
- uses: RustCrypto/actions/cargo-hack-install@master
# TODO: remove after bump to MSRV 1.60+
- run: cargo update
- run: cargo update -p zeroize --precise 1.6.0
- run: cargo hack test --feature-powerset
2 changes: 1 addition & 1 deletion .github/workflows/belt-hash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.57.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/blake2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.56.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down Expand Up @@ -68,24 +68,12 @@ jobs:
working-directory: ${{ github.workflow }}
stable-cmd: cargo hack test --release --feature-powerset --exclude-features simd,simd_opt,simd_asm

simd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2021-05-01
- run: cargo test --features simd
- run: cargo test --features simd_opt
- run: cargo test --features simd_asm

# Cross-compiled tests
cross:
strategy:
matrix:
rust:
- 1.56
- 1.85
- stable
target:
- aarch64-unknown-linux-gnu
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fsb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.56.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gost94.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.57.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/groestl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.56.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.61.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.56.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/md2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.57.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/md4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.57.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/md5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.57.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.72
toolchain: 1.85
targets: loongarch64-unknown-linux-gnu
- run: cargo build --target loongarch64-unknown-linux-gnu --features loongarch64_asm

Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Publish to crates.io
on:
push:
tags: [
'ascon-hash256-v*',
'bash-hash-v*',
'belt-hash-v*',
'blake2-v*',
'fsb-v*',
'gost94-v*',
'groestl-v*',
'jh-v*',
'kupyna-v*',
'md2-v*',
'md4-v*',
'md5-v*',
'ripemd-v*',
'sha1-checked-v*',
'sha1-v*',
'sha2-v*',
'sha3-v*',
'shabal-v*',
'skein-v*',
'sm3-v*',
'streebog-v*',
'tiger-v*',
'whirlpool-v*',
]

jobs:
publish:
runs-on: ubuntu-latest
environment: publish
permissions:
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: rust-lang/crates-io-auth-action@c6f97d42243bad5fab37ca0427f495c86d5b1a18 # v1.0.5
id: auth

- name: Extract Crate Name and Version
run: |
TAG_NAME="${{ github.ref_name }}"
CRATE_NAME=${TAG_NAME%-v*}
CRATE_VERSION=${TAG_NAME##*-v}
echo $CRATE_NAME $CRATE_VERSION
echo "CRATE_NAME=${CRATE_NAME}" >> $GITHUB_ENV
echo "CRATE_VERSION=${CRATE_VERSION}" >> $GITHUB_ENV

- name: Check crate version
working-directory: ${{ env.CRATE_NAME }}
run: |
CRATE_TOML_VERSION=$(grep "^version =" Cargo.toml | cut -d'"' -f2)
echo $CRATE_TOML_VERSION
[[ $CRATE_TOML_VERSION == $CRATE_VERSION ]]

- name: Publish
working-directory: ${{ env.CRATE_NAME }}
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
run: cargo publish
2 changes: 1 addition & 1 deletion .github/workflows/ripemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.57.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/sha1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
# Crate supports MSRV 1.41 without `oid` feature. We test true MSRV
# in the `test-msrv` job.
msrv: 1.57.0
msrv: 1.85.0

# Builds for no_std platforms
build:
Expand Down Expand Up @@ -140,7 +138,7 @@ jobs:
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.72
toolchain: 1.85
targets: loongarch64-unknown-linux-gnu
- run: cargo build --target loongarch64-unknown-linux-gnu --features loongarch64_asm

Expand All @@ -149,7 +147,7 @@ jobs:
strategy:
matrix:
rust:
- 1.56.0
- 1.85.0
- stable
target:
- aarch64-unknown-linux-gnu
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/sha2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
# Crate supports MSRV 1.41 without `oid` feature. We test true MSRV
# in the `test-msrv` job.
msrv: 1.59.0
msrv: 1.85.0

# Builds for no_std platforms
build:
Expand All @@ -32,7 +30,7 @@ jobs:
strategy:
matrix:
rust:
- 1.59
- 1.85
- stable
target:
- thumbv7em-none-eabi
Expand Down Expand Up @@ -84,7 +82,7 @@ jobs:
strategy:
matrix:
rust:
- 1.79
- 1.85
- stable
runs-on: macos-latest
steps:
Expand Down Expand Up @@ -129,7 +127,7 @@ jobs:
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.72
toolchain: 1.85
targets: loongarch64-unknown-linux-gnu
- run: cargo build --target loongarch64-unknown-linux-gnu --features loongarch64_asm

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/sha3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
# Crate supports MSRV 1.41 without `oid` feature. We test true MSRV
# in the `test-msrv` job.
msrv: 1.57.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shabal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.56.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/skein.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.57.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sm3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.56.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/streebog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.57.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tiger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.56.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/whirlpool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.56.0
msrv: 1.85.0

build:
needs: set-msrv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.71.0
toolchain: 1.85.0
components: clippy
- run: cargo clippy --all -- -D warnings

Expand Down
Loading
Loading