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

Add support for Rust edition 2021 #86

Closed
KokaKiwi opened this issue Jan 7, 2021 · 0 comments
Closed

Add support for Rust edition 2021 #86

KokaKiwi opened this issue Jan 7, 2021 · 0 comments

Comments

@KokaKiwi
Copy link

KokaKiwi commented Jan 7, 2021

As in rust-lang/cargo#8922, the field package.edition in Cargo.toml can now be set to "2021"

The cargo.toml.json schema is then outdated as of now:

"Edition": {
"title": "Edition",
"description": "The `edition` key affects which edition your package is compiled with. Cargo\nwill always generate packages via [`cargo new`](https://doc.rust-lang.org/cargo/commands/cargo-new.html) with the `edition` key set to the\nlatest edition. Setting the `edition` key in `[package]` will affect all\ntargets/crates in the package, including test suites, benchmarks, binaries,\nexamples, etc.",
"type": "string",
"enum": ["2015", "2018"],
"x-taplo": {
"links": {
"key": "https://doc.rust-lang.org/stable/edition-guide/introduction.html"
}
}
},

@tamasfe tamasfe closed this as completed in 54ae9da Jan 7, 2021
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

No branches or pull requests

1 participant