Skip to content

Fix CI: rustfmt, clippy and cargo-deny - #430

Merged
kevinlewi merged 1 commit into
meta:mainfrom
kevinlewi:fix-ci
Nov 4, 2026
Merged

kevinlewi merged 1 commit into
meta:mainfrom
kevinlewi:fix-ci

Conversation

@kevinlewi

Copy link
Copy Markdown
Contributor

CI is currently failing on main for every PR (e.g. #427), independent of the change being proposed. This fixes those failures:

  • cargo fmt: the latest nightly rustfmt (1.11.0, 2026-11-02) re-wraps comments under wrap_comments = true. Applied it (comment-only changes).
  • cargo clippy (stable 1.99.1):
    • explicit_counter_loop and a redundant format! reference in the test vector parser.
    • some_filter (new in clippy 1.99) in the SIGMA-I transcript builder: Some(x).filter(|_| cond) -> cond.then_some(x). The values have no side effects, so behavior is identical.
    • multiple_crate_versions: a fresh resolve pulls in both syn 2 (via zeroize_derive) and syn 3 (via derive-where, displaydoc, serde_derive), which trips the clippy::cargo group. It's entirely transitive, so it's allowed in lib.rs, as it was before 2022.
  • cargo-deny:
    • Upgrade the cryptoki dev-dependency 0.9 -> 0.12.1 for RUSTSEC-2026-0286 (only used by the SoftHSM integration test; small API updates in tests/remote_key.rs).
    • Temporarily ignore RUSTSEC-2026-0387 (crypto-bigint 0.5 via elliptic-curve 0.13). There is no patched 0.5.x; the real fix is the elliptic-curve 0.14 migration (see Move OPAQUE to the patched elliptic-curve stack #428), which should remove this ignore. Downstream users' own audits still report it.

No functional changes. No changes to opaque-ke's own dependencies (cryptoki is dev-only).

Verified locally: nightly cargo fmt --check; clippy with -D warnings on stable 1.99.1 and 1.87.0, with and without --cfg test_hsm; rustdoc with -D warnings; taplo fmt --check; cargo deny check; the full CI test matrix (7 backends x 3 frontends, with and without std) on stable and 1.87.0; the wasm32/thumbv6m no_std builds; and bench compilation. I couldn't run the SoftHSM tests locally (compile-only), so CI's HSM run is the real check for tests/remote_key.rs.

Companion PR for voprf: meta/voprf#160.

- Apply the latest nightly rustfmt (comment wrapping under
  `wrap_comments = true`)
- Fix clippy lints: explicit_counter_loop and a redundant format!
  reference in the test vector parser, and some_filter (new in clippy
  1.99) in the SIGMA-I transcript builder (`cond.then_some(x)`, same
  behavior)
- Allow clippy::multiple_crate_versions: a fresh resolve pulls in both
  syn 2 and syn 3 through proc-macro dependencies, which fails the
  clippy::cargo lint group
- Upgrade the cryptoki dev-dependency to 0.12.1 to address
  RUSTSEC-2026-0286 (used only by the HSM integration test)
- Temporarily ignore RUSTSEC-2026-0387 (crypto-bigint 0.5 via
  elliptic-curve 0.13) in deny.toml. There is no patched 0.5.x; the real
  fix is the elliptic-curve 0.14 migration, which should remove this
  ignore.
@meta-cla meta-cla Bot added the cla signed label Nov 3, 2026
@kevinlewi
kevinlewi merged commit c5bbcc5 into meta:main Nov 4, 2026
85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant