Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare minimum supported rust version as 1.74, and test this in CI #62

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

martinling
Copy link
Contributor

Currently nusb does not specify a minimum supported Rust version (MSRV). This information would be useful to have.

In the process of trying to minimise the MSRV for a downstream project, I found that nusb's MSRV is currently 1.74.

This PR declares that MSRV, and updates CI to test with both the MSRV and the latest stable release, to give a warning if the minimum becomes inaccurate.

It might be possible to reduce the MSRV, if that's of interest.

During testing I found that older releases such as 0.1.3 could be built with Rust 1.64.

Use of Option::is_some_and raised the requirement to 1.70.

Use of OsStr::as_encoded_bytes raised the requirement to 1.74.

This minimum is imposed by the use of OsStr::as_encoded_bytes in
platform/linux_usbfs/enumeration.rs.
@kevinmehall kevinmehall merged commit 50e022b into kevinmehall:main Jul 3, 2024
7 checks passed
@kevinmehall
Copy link
Owner

Thanks!

Looking forward to getting my Cynthion and trying Packetry.

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