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

Set MSRV to 1.76 #871

Merged
merged 4 commits into from
Oct 11, 2024
Merged

Set MSRV to 1.76 #871

merged 4 commits into from
Oct 11, 2024

Conversation

Urhengulas
Copy link
Member

@Urhengulas Urhengulas commented Oct 9, 2024

This PR documents and tests Rust 1.76 as our MSRV. This is the version Ferrocene 24.05 is based on. Before we only guaranteed to support the latest stable.

I tried to store the MSRV in an env variable in the workflow file, but unfortunately env variables are not available in the strategy matrix, so it has to be repeated.

@Urhengulas Urhengulas added the breaking change fix / feature / improvement involves a breaking change and needs to wait until next minor version label Oct 9, 2024
@Urhengulas Urhengulas marked this pull request as ready for review October 9, 2024 15:07
README.md Outdated Show resolved Hide resolved
firmware/defmt-semihosting/src/lib.rs Show resolved Hide resolved
xtask/src/utils.rs Show resolved Hide resolved
xtask/src/main.rs Show resolved Hide resolved
"panic_info",
];
const NIGHTLY_SNAPSHOT_TESTS: &[&str] = &["alloc"];
const POST_MSRV_SNAPSHOT_TESTS: &[&str] = &["net"];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unclear to me what "post msrv snapshot tests" are. If we raise the msrv should this change?

Copy link
Member Author

@Urhengulas Urhengulas Oct 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. We have three brackets of tests

  1. tests that work on the msrv, stable and nightly
  2. tests that work on stable and nightly
  3. tests that work on nightly only

Regarding 2: The default defmt features support the msrv, but some of the optional features require a newer version, e.g. ip_in_core. These tests are the ones in POST_MSRV_TESTS. Maybe OPTIONAL_FEATURE_TESTS is better?

Regarding 3: These tests use unstable features.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So POST_MSRV means "any version above our MSRV"? If so, a little comment would be really nice:

// Tests which run on all Rustc versions later than our MSRV
const POST_MSRV_SNAPSHOT_TESTS: &[&str] = &["net"];

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it's not all versions. It's some version in MSRV..=STABLE.

Copy link
Member

@Hoverbear Hoverbear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers. :)

@Urhengulas Urhengulas added this pull request to the merge queue Oct 11, 2024
Merged via the queue into main with commit 5733f80 Oct 11, 2024
25 checks passed
@Urhengulas Urhengulas deleted the msrv branch October 11, 2024 14:27
@Urhengulas Urhengulas mentioned this pull request Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change fix / feature / improvement involves a breaking change and needs to wait until next minor version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants