Skip to content

Mark Precision non-exhaustive and bump to 0.4.0 - #29

Merged
praveenperera merged 2 commits into
masterfrom
precision-non-exhaustive
Oct 30, 2026
Merged

praveenperera merged 2 commits into
masterfrom
precision-non-exhaustive

Conversation

@praveenperera

Copy link
Copy Markdown
Member

Summary

  • Mark Precision #[non_exhaustive]. The low-precision feature adds the Fp8, Int8 and Nvfp4 variants. Cargo enables a feature for every crate in a build once any one crate asks for it, so without this, an exhaustive match in one crate would break as soon as another crate in the same build turned the feature on.
  • Bump to 0.4.0. Adding variants to the exhaustive enum published in 0.3.0 already breaks exhaustive matches, so this needs a minor bump rather than a patch.
  • The README install snippets now point at 0.4.

Migration

A match on Precision needs a _ => arm. Code that only passes a precision to with_precision is unaffected.

Checks

  • just check passes.
  • Clippy is clean with cuda and with cuda,long-form,vad,low-precision. The only warning is the one on the transcribe_wav example, which master already has.
  • rustdoc builds with -D warnings.

The low-precision feature adds variants, and Cargo turns a feature on
for every crate in a build once any one enables it, so an exhaustive
match downstream could break without that crate changing anything.
Precision gained the low-precision variants and is now non-exhaustive,
which breaks exhaustive matches on it, so this is a minor bump rather
than a patch. The README install snippets point at 0.4.
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 75368e05-5b1b-44c0-be64-e59a79063ed7
Commits

Reviewing files that changed from the base of the PR and between 2ace031 and ad014f2.

Files ignored due to path filters: 1
  • Cargo.lock is excluded by !**/*.lock
Files selected for processing: 4
  • Cargo.toml
  • README.md
  • examples/cuda_bench.rs
  • src/models.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@praveenperera
praveenperera merged commit c16d3af into master Oct 30, 2026
4 checks passed
@praveenperera
praveenperera deleted the precision-non-exhaustive branch October 30, 2026 18:20
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.

1 participant