Skip to content

Commit

Permalink
Bump digest to v0.11.0-pre.3; MSRV 1.71 (#523)
Browse files Browse the repository at this point in the history
Also bumps crate editions to 2021 where appropriate
  • Loading branch information
tarcieri authored Jan 6, 2024
1 parent 74dcc27 commit 7febf02
Show file tree
Hide file tree
Showing 78 changed files with 420 additions and 485 deletions.
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.71.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.71.0

build:
needs: set-msrv
Expand Down
27 changes: 14 additions & 13 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.41.0
msrv: 1.71.0

build:
needs: set-msrv
Expand Down Expand Up @@ -68,24 +68,25 @@ 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
# No longer builds on recent nightlies
# 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.51 # 1.41-1.50 `--features` can't be used inside virtual manifest
- 1.71.0
- 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.41.0
msrv: 1.71.0

build:
needs: set-msrv
Expand Down
18 changes: 1 addition & 17 deletions .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.71.0

build:
needs: set-msrv
Expand Down Expand Up @@ -65,19 +65,3 @@ jobs:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

# TODO: merge with test on MSRV bump to 1.57 or higher
test-msrv-41:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test
- run: cargo test --no-default-features
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.41.0
msrv: 1.71.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 @@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.57.0
msrv: 1.71.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.71.0

build:
needs: set-msrv
Expand Down
18 changes: 1 addition & 17 deletions .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.71.0

build:
needs: set-msrv
Expand Down Expand Up @@ -65,19 +65,3 @@ jobs:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

# TODO: merge with test on MSRV bump to 1.57 or higher
test-msrv-41:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test --no-default-features
- run: cargo test
18 changes: 1 addition & 17 deletions .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.71.0

build:
needs: set-msrv
Expand Down Expand Up @@ -65,19 +65,3 @@ jobs:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

# TODO: merge with test on MSRV bump to 1.57 or higher
test-msrv:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test --no-default-features
- run: cargo test
17 changes: 1 addition & 16 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.71.0

build:
needs: set-msrv
Expand Down Expand Up @@ -80,18 +80,3 @@ jobs:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

# TODO: merge with test on MSRV bump to 1.57 or higher
test-msrv:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test
17 changes: 1 addition & 16 deletions .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.71.0

build:
needs: set-msrv
Expand Down Expand Up @@ -66,18 +66,3 @@ jobs:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

# TODO: merge with test on MSRV bump to 1.57 or higher
test-msrv:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test --no-default-features
27 changes: 6 additions & 21 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.71.0

# Builds for no_std platforms
build:
Expand Down Expand Up @@ -115,19 +113,18 @@ jobs:
matrix:
include:
# 64-bit Windows (GNU)
# TODO(tarcieri): try re-enabling this when we bump MSRV
#- target: x86_64-pc-windows-gnu
# toolchain: ${{needs.set-msrv.outputs.msrv}}
- target: x86_64-pc-windows-gnu
rust: stable
toolchain: ${{needs.set-msrv.outputs.msrv}}
- target: x86_64-pc-windows-gnu
toolchain: stable

runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- uses: msys2/setup-msys2@v2
- run: cargo test --target ${{ matrix.target }}
Expand All @@ -149,7 +146,7 @@ jobs:
strategy:
matrix:
rust:
- 1.51.0 # 1.41-1.50 `--features` can't be used inside virtual manifest
- 1.71.0
- stable
target:
- aarch64-unknown-linux-gnu
Expand All @@ -176,15 +173,3 @@ jobs:
package: ${{ github.workflow }}
target: ${{ matrix.target }}
features: ${{ matrix.features }}

# TODO: remove on MSRV bump to 1.57 or higher
test-msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.41.0
- run: cargo test --no-default-features
- run: cargo test
18 changes: 2 additions & 16 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.71.0

# Builds for no_std platforms
build:
Expand All @@ -32,7 +30,7 @@ jobs:
strategy:
matrix:
rust:
- 1.59
- 1.71.0
- stable
target:
- thumbv7em-none-eabi
Expand Down Expand Up @@ -168,15 +166,3 @@ jobs:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

# TODO: remove on MSRV bump to 1.57 or higher
test-msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.41.0
- run: cargo test --no-default-features
- run: cargo test
16 changes: 1 addition & 15 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.71.0

build:
needs: set-msrv
Expand Down Expand Up @@ -95,15 +93,3 @@ jobs:
package: ${{ github.workflow }}
target: ${{ matrix.target }}
features: ${{ matrix.features }}

# TODO: remove on MSRV bump to 1.57 or higher
test-msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.41.0
- run: cargo test --no-default-features
- run: cargo test
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.41.0
msrv: 1.71.0

build:
needs: set-msrv
Expand Down
Loading

0 comments on commit 7febf02

Please sign in to comment.