Skip to content

Update remaining crates to edition 2021.#621

Open
wt wants to merge 1 commit intorust-embedded:masterfrom
wt:upgrade_to_edition_2021
Open

Update remaining crates to edition 2021.#621
wt wants to merge 1 commit intorust-embedded:masterfrom
wt:upgrade_to_edition_2021

Conversation

@wt
Copy link

@wt wt commented Feb 14, 2026

This pushes the crates that are still listed as edition 2018 to 2021. I test built all of them.

@jonathanpallant adds:

I think we need input from the whole team for an MSRV bump. This PR moves us to 1.71.

@wt wt marked this pull request as draft February 14, 2026 12:11
@wt wt force-pushed the upgrade_to_edition_2021 branch from c7c2f57 to ff1f7c7 Compare February 14, 2026 12:20
@wt
Copy link
Author

wt commented Feb 14, 2026

Looks like MSRV would need to be moved to 1.68 for this. Would that be acceptable?

Why, you ask?
https://github.com/rust-embedded/cortex-m/actions/runs/22017091190/job/63620388850?pr=621

@wt wt force-pushed the upgrade_to_edition_2021 branch 4 times, most recently from 82f2868 to c0c13ca Compare February 14, 2026 12:37
@wt
Copy link
Author

wt commented Feb 14, 2026

There were some other issues that required 1.71 instead of 1.68.

@wt wt force-pushed the upgrade_to_edition_2021 branch from c0c13ca to 53f07a1 Compare February 14, 2026 12:49
@wt wt marked this pull request as ready for review February 14, 2026 12:50
@wt wt force-pushed the upgrade_to_edition_2021 branch 5 times, most recently from d1c5d99 to 967980e Compare February 14, 2026 13:50
xtask/Cargo.toml Outdated
[package]
name = "xtask"
version = "0.0.0"
version = "0.0.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is just tooling for the repo, so it can stay at 0.0.0

Copy link
Author

@wt wt Feb 15, 2026

Choose a reason for hiding this comment

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

I backed out the version change.

Also, the version attribute is optional and defaults to 0.0.0. Should we just remove that line altogether?

@wt wt force-pushed the upgrade_to_edition_2021 branch from 967980e to 5906a32 Compare February 14, 2026 22:59
MSRV needs to move to 1.71 for this to work since there are deps that depend on
that version.
@wt wt force-pushed the upgrade_to_edition_2021 branch from 5906a32 to 3796cc3 Compare February 15, 2026 00:00
@adamgreig
Copy link
Member

I don't think we strictly require a vote to update the MSRV, but I'll leave this open for a few days in case anyone wants to chime in or comment.

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.

3 participants