Skip to content

Fix CI: pin to Rust 1.94.0, fix clippy warnings, fix feature gates#130

Merged
AdaWorldAPI merged 3 commits intomasterfrom
cursor/env-setup-bd77
Apr 30, 2026
Merged

Fix CI: pin to Rust 1.94.0, fix clippy warnings, fix feature gates#130
AdaWorldAPI merged 3 commits intomasterfrom
cursor/env-setup-bd77

Conversation

@AdaWorldAPI
Copy link
Copy Markdown
Owner

@AdaWorldAPI AdaWorldAPI commented Apr 30, 2026

Changes

1. Pin all CI to Rust 1.94.0

  • Removed MSRV matrix (1.64.0, 1.71.1) and stable/beta variants
  • All jobs now rely on rust-toolchain.toml (declares channel = "1.94.0" + components = ["clippy", "rustfmt"])
  • No more dtolnay/rust-toolchain workarounds for clippy/rustfmt installation
  • Nightly-only jobs (miri, cargo-careful, docs) unchanged

2. Fix 5 clippy warnings (-D warnings)

File Fix
src/simd_int_ops.rs:287,288 Remove unnecessary parens in closure bodies
src/hpc/vml.rs:478 Remove unnecessary parens in closure body
src/hpc/vnni_gemm.rs:318 Remove unnecessary parens in closure body
src/hpc/renderer.rs:428 Replace useless u64 >= 0 with assert_eq!(_, 0)

3. Backend features now imply std

native = ["std"]
intel-mkl = ["std"]
openblas = ["std"]

These backends expose HPC functionality via the hpc module which is cfg(feature = "std"). Without this, --features native without default features couldn't find hpc::*.

4. ocr_benchmark example gated

Added required-features = ["std"] as safeguard.

5. AGENTS.md

Added Cursor Cloud specific development instructions.

Verification

  • RUSTFLAGS="-D warnings" cargo test --no-default-features --features native -p ndarray --no-run — compiles clean
  • RUSTFLAGS="-D warnings" cargo clippy --features native -- -D warnings — clean
  • All 1819 lib tests pass
Open in Web Open in Cursor 

@cursor cursor Bot changed the title Add AGENTS.md with Cursor Cloud development environment instructions Fix CI clippy warnings and add AGENTS.md Apr 30, 2026
@AdaWorldAPI AdaWorldAPI marked this pull request as ready for review April 30, 2026 17:00
@cursor cursor Bot changed the title Fix CI clippy warnings and add AGENTS.md Fix CI: pin to Rust 1.94.0, fix clippy warnings, fix feature gates Apr 30, 2026
cursoragent and others added 3 commits April 30, 2026 18:44
Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
…rison

- src/simd_int_ops.rs: remove redundant parens in closure bodies (lines 287, 288)
- src/hpc/vml.rs: remove redundant parens in closure body (line 478)
- src/hpc/vnni_gemm.rs: remove redundant parens in closure body (line 318)
- src/hpc/renderer.rs: replace useless >= 0 comparison on u64 with assert_eq!(_, 0)

Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
These backends expose HPC functionality via the hpc module which is
gated behind cfg(feature = "std"). Without this, --no-default-features
--features native fails to find hpc::ocr_simd and other hpc modules.

Also adds required-features = ["std"] to ocr_benchmark example as a
safeguard.

Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
@cursor cursor Bot force-pushed the cursor/env-setup-bd77 branch from 5ca9f1e to 2173938 Compare April 30, 2026 18:45
@AdaWorldAPI AdaWorldAPI merged commit 0f26271 into master Apr 30, 2026
6 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants