Skip to content

Commit

Permalink
elliptic-curve: fix hkdf version requirement and test in CI
Browse files Browse the repository at this point in the history
The minimal supported version of `hkdf` is v0.12.1, which added a
generic parameter with a default which selects the backend.

This also (mostly) re-enables a `minimal-versions` check in CI, although
it still doesn't quite test all features.
  • Loading branch information
tarcieri committed Oct 2, 2023
1 parent 1f9f72f commit 3e81ab7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/elliptic-curve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,17 @@ jobs:
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic,serde
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,digest,ecdh,hazmat,hash2curve,jwk,pem,pkcs8,sec1,serde,voprf

# TODO: use the reusable workflow after this crate is re-added to the
# toplevel workspace
# minimal-versions:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: RustCrypto/actions/cargo-cache@master
# - uses: dtolnay/rust-toolchain@master
# with:
# toolchain: nightly
# - uses: RustCrypto/actions/cargo-hack-install@master
# - run: cargo update -Z minimal-versions
# - run: cargo hack test --release --feature-powerset
minimal-versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo update -Z minimal-versions
- run: cargo build --release --features ecdh,hash2curve,pem,std,voprf # TODO(tarcieri): test all features

test:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion elliptic-curve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ base64ct = { version = "1", optional = true, default-features = false, features
digest = { version = "0.10", optional = true }
ff = { version = "0.13", optional = true, default-features = false }
group = { version = "0.13", optional = true, default-features = false }
hkdf = { version = "0.12", optional = true, default-features = false }
hkdf = { version = "0.12.1", optional = true, default-features = false }
hex-literal = { version = "0.4", optional = true }
pem-rfc7468 = { version = "0.7", optional = true, features = ["alloc"] }
pkcs8 = { version = "0.10.2", optional = true, default-features = false }
Expand Down

0 comments on commit 3e81ab7

Please sign in to comment.