Skip to content

Conversation

@DhanushVarma-2
Copy link

Problem:
The build was failing with Rust 1.54.0 due to use of is_multiple_of() method, which wasn't stable until Rust 1.90.0. This broke the project's stated Minimum Supported Rust Version (MSRV) of 1.54.0.

Root Cause:
The is_multiple_of() method was introduced in #1753 to satisfy Clippy lints, but Clippy wasn't configured with the project's MSRV, causing it to suggest APIs unavailable in Rust 1.54.0.

Solution:

  1. Reverted unstable API: Changed is_multiple_of(2) back to stable % 2 == 0 check
  2. Added MSRV configuration: Created clippy.toml with msrv = "1.54.0" to prevent Clippy from suggesting incompatible APIs in the future

Changes Made

  • src/rust/src/es/pic.rs: Reverted is_multiple_of(2)% 2 == 0
  • src/rust/clippy.toml: Added MSRV configuration

Verification

  • Code change maintains identical logic (is_multiple_of(2)% 2 == 0)
  • Build should now work with Rust 1.54.0+
  • Clippy will now respect project MSRV when suggesting fixes

This fix maintains compatibility with the project's stated MSRV while preventing similar issues in the future.

Closes #1765

- Reverts is_multiple_of(2) to stable % 2 == 0 check to maintain
  compatibility with Rust 1.54.0 (project MSRV)
- Adds clippy.toml with msrv = '1.54.0' to prevent Clippy from
  suggesting APIs that aren't available in the MSRV

Fixes: CCExtractor#1765
@ccextractor-bot
Copy link
Collaborator

CCExtractor CI platform finished running the test files on linux. Below is a summary of the test results, when compared to test for commit 42d7509...:
Report Name Tests Passed
Broken 13/13
CEA-708 14/14
DVB 7/7
DVD 3/3
DVR-MS 2/2
General 27/27
Hardsubx 1/1
Hauppage 3/3
MP4 3/3
NoCC 10/10
Options 86/86
Teletext 21/21
WTV 13/13
XDS 34/34

Congratulations: Merging this PR would fix the following tests:


All tests passing on the master branch were passed completely.

Check the result page for more info.

- Update all build configuration files to require Rust 1.87.0+
- Add clippy.toml with MSRV configuration as requested
- Maintain modern Rust features like is_multiple_of()
- Fixes build compatibility issue CCExtractor#1765
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.

ccextractor does not build with rust 1.54.0

2 participants