Skip to content

fix(j2k-native): gate streamed-row helpers on parallel support - #392

Merged
jcwal1516 merged 2 commits into
mainfrom
fix/no-default-features-pr-check
Dec 3, 2026
Merged

jcwal1516 merged 2 commits into
mainfrom
fix/no-default-features-pr-check

Conversation

@jcwal1516

Copy link
Copy Markdown
Member

What and why

Six reversible decoding helpers added in #385 only have callers in the parallel streamed-row path. A build with default features disabled compiled the helpers too, and the no-std check on main failed on the resulting unused functions. Failing build

Give the helpers the same parallel feature guard as their callers. The existing minimum-Rust-version PR job now also checks the native codec with default features disabled, so it catches this regression before merge.

Impact

  • Restores the warnings-as-errors build for the native codec without default features.
  • The parallel decoder keeps its existing implementation. The guards apply to crate-private functions.
  • The new PR check uses the toolchain the MSRV job already installs.

Testing

  • Reproduced all six compiler errors on public main with RUSTFLAGS="-D warnings" cargo xtask no-std. The same full cross-target command passed with the guards.
  • Ran the exact new PR command with warnings denied on Rust 1.97. It passed.
  • The focused parallel streamed-row precision regression passed with the feature enabled, and project formatting and git diff --check passed.
  • The build configuration that failed is now checked on pull requests.

The batched streamed-row exactness path is available only with the parallel feature. Gate its helpers at the same boundary so serial no_std builds do not compile unused definitions.
@jcwal1516
jcwal1516 marked this pull request as ready for review December 3, 2026 01:18
@jcwal1516
jcwal1516 merged commit 8b57d97 into main Dec 3, 2026
34 of 36 checks passed
@jcwal1516
jcwal1516 deleted the fix/no-default-features-pr-check branch December 3, 2026 01:18
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