Skip to content

Conversation

@jessebraham
Copy link
Member

  • Bumps the MSRV of each package to 1.67
  • Check the defmt feature in the MSRV check
  • Add the esp32c6-lp-hal-procmacros package to the VS Code workspace

This unifies the various MSRV differences between RISC-V/Xtensa/async/defmt, so I think it's a nice improvement. Much simpler now, just a single version (as it should be).

Not sure why defmt was stated as requiring the latest stable release previously, but it seems to build just fine in our MSRV check. If there is more to this, please provide some documentation so I can make a note of it for the future.

@bjoernQ @MabezDev please let me know if you have any questions/concerns/objections to any of this. We should probably revisit our MSRV policy in the future, but I think for now this is a good balance.

Closes #788

@bugadani
Copy link
Contributor

Not sure why defmt was stated as requiring the latest stable release previously

It was because their own policy is "latest stable", and I didn't want to specify anything older, as a sort of escape hatch. If the dependencies need to be updated for any reason, the MSRV may or may not change and I guess tracking that just for an optional feature might be more annoying than the vague spec.

It should be noted that targeting the Xtensa ISA currently requires the use of the [esp-rs/rust] compiler fork. Our recommend method of installation is [espup].

RISC-V is officially supported by the official Rust compiler.
When targetting the RISC-V architecture, it is necessary to set `RUSTC_BOOTSTRAP=1` in order to build with a previous stable release; this is not required when targeting Xtensa.
Copy link
Contributor

Choose a reason for hiding this comment

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

While it already says it, maybe we could explicitly say RUSTC_BOOTSTRAP is not needed when using a nightly compiler?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the suggestion. Going to just merge this for now to get it in, but I'll make a note to clarify that (I have some more README updates I'd like to make at some point, so will take care of this soon-ish)

Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

Nice improvement!

@jessebraham jessebraham merged commit 2badf86 into esp-rs:main Sep 19, 2023
@jessebraham jessebraham deleted the fixes/msrv branch September 19, 2023 17:54
SergioGasquez pushed a commit to SergioGasquez/esp-hal that referenced this pull request Sep 22, 2023
…-rs#798)

* Bump MSRV to 1.67, check with `defmt` feature enabled in MSRV checks where applicable

* Add `esp32c6-lp-hal-procmacros` package to VS Code workspace

* Update `CHANGELOG.md`
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.

Decide on MSRV

4 participants