Skip to content

Rust edition 2021 support #1593

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

Closed
ehuss opened this issue Jul 4, 2021 · 1 comment · Fixed by #1596
Closed

Rust edition 2021 support #1593

ehuss opened this issue Jul 4, 2021 · 1 comment · Fixed by #1596
Labels
A-Configuration Area: Configuration

Comments

@ehuss
Copy link
Contributor

ehuss commented Jul 4, 2021

mdbook needs to be updated to support the 2021 edition configuration for Rust. There are several things to do here:

  • Update RustEdition and everything that references it (including the javascript code for the playground). In hindsight this probably should have been a free-form string (so it wouldn't need updating each time), but that can't change now. Perhaps that would be good to change for 0.5.
  • Update documentation.
  • Unfortunately until the edition is stabilized, it requires the -Zunstable-options flag to be passed to rustdoc. I'm thinking maybe just pass that for now, and then remove it when it is stabilized?
@ehuss ehuss added the A-Configuration Area: Configuration label Jul 4, 2021
@Dylan-DPC-zz
Copy link

Unfortunately until the edition is stabilized, it requires the -Zunstable-options flag to be passed to rustdoc. I'm thinking maybe just pass that for now, and then remove it when it is stabilized?

yeah that sounds fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Configuration Area: Configuration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants