From 9fc40a0724ff3b9d4ef77444daebd5534c0ce4a9 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 23 Nov 2024 08:52:47 -0800 Subject: [PATCH 1/4] Rust 2024 call for testing --- posts/2024-11-27-Rust-2024-public-testing.md | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 posts/2024-11-27-Rust-2024-public-testing.md diff --git a/posts/2024-11-27-Rust-2024-public-testing.md b/posts/2024-11-27-Rust-2024-public-testing.md new file mode 100644 index 000000000..daa3264a4 --- /dev/null +++ b/posts/2024-11-27-Rust-2024-public-testing.md @@ -0,0 +1,26 @@ +--- +layout: post +title: "Rust 2024 call for testing" +author: Eric Huss +team: the Edition 2024 Project Group +--- + +# Rust 2024 call for testing + +We are happy to announce that the Rust 2024 edition is entering its **public testing period**. All of the planned features for the edition are now available on nightly builds along with migrations that should move your code from Rust 2021 to Rust 2024. If you'd like to learn more about the changes that are part of Rust 2024, check out the [nightly version of the Edition Guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html). + +### Public testing period + +We are asking for the public to help test the 2024 edition by trying out the migration in your projects using the nightly channel. As always, we expect this to be a largely automated process. The steps to try out the Rust 2024 Edition as follows ([more detailed directions can be found here](https://doc.rust-lang.org/nightly/edition-guide/editions/transitioning-an-existing-project-to-a-new-edition.html)): + +1. Install the most recent nightly: `rustup update nightly`. +2. Run `cargo +nightly fix --edition`. +3. Edit `Cargo.toml` and change the edition field to say `edition = "2024"`. +4. Run `cargo +nightly check` to verify it now works in the new edition. +5. Run some tests and kick the tires on the new features! + +If you encounter any problems or find areas where quality could be improved (missing documentation, confusing error messages, etc) please [file an issue](https://github.com/rust-lang/rust/issues/new/choose) and tell us about it! Thank you! + +### What comes next + +Rust 2024 is scheduled to hit stable in Rust 1.85, which will be released on February 20th, 2025. From a942db30f6c12af45e9b2a4aef34e70dc3a9dadc Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Mon, 25 Nov 2024 13:16:09 +0000 Subject: [PATCH 2/4] Revise the Rust 2024 call for testing Let's do a bit more to get people excited, and tighten up some language here. For the team in the by-line, it'd be best if we had a website for our team, but for the moment, let's just link to the edition guide rather than to the team TOML file. --- posts/2024-11-27-Rust-2024-public-testing.md | 26 +++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/posts/2024-11-27-Rust-2024-public-testing.md b/posts/2024-11-27-Rust-2024-public-testing.md index daa3264a4..3d6b44934 100644 --- a/posts/2024-11-27-Rust-2024-public-testing.md +++ b/posts/2024-11-27-Rust-2024-public-testing.md @@ -1,26 +1,28 @@ --- layout: post title: "Rust 2024 call for testing" -author: Eric Huss -team: the Edition 2024 Project Group +author: "Eric Huss & TC" +team: the Edition 2024 Project Group --- # Rust 2024 call for testing -We are happy to announce that the Rust 2024 edition is entering its **public testing period**. All of the planned features for the edition are now available on nightly builds along with migrations that should move your code from Rust 2021 to Rust 2024. If you'd like to learn more about the changes that are part of Rust 2024, check out the [nightly version of the Edition Guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html). +We've been hard at work on Rust 2024. We're thrilled about how it has turned out. It's going to be the largest edition since Rust 2015. It has a great many improvements that make the language more consistent and ergonomic, that further upon our relentless commitment to safety, and that will open the door to long-awaited features such as `gen` blocks, `let` chains, and the never (`!`) type. For more on the changes, see the nightly [Edition Guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html). -### Public testing period +As planned, we recently merged the feature-complete Rust 2024 edition [to the release train](https://github.com/rust-lang/rust/pull/133349) for Rust 1.85. It has now entered **nightly beta**. -We are asking for the public to help test the 2024 edition by trying out the migration in your projects using the nightly channel. As always, we expect this to be a largely automated process. The steps to try out the Rust 2024 Edition as follows ([more detailed directions can be found here](https://doc.rust-lang.org/nightly/edition-guide/editions/transitioning-an-existing-project-to-a-new-edition.html)): +You can help right now to make this edition a success by testing Rust 2024 on your own projects using nightly Rust. Migrating your projects to the new edition is straightforward and mostly automated. Here's how: -1. Install the most recent nightly: `rustup update nightly`. -2. Run `cargo +nightly fix --edition`. +1. Install the most recent nightly with `rustup update nightly`. +2. In your project, run `cargo +nightly fix --edition`. 3. Edit `Cargo.toml` and change the edition field to say `edition = "2024"`. -4. Run `cargo +nightly check` to verify it now works in the new edition. -5. Run some tests and kick the tires on the new features! +4. Run `cargo +nightly check` to verify your project now works in the new edition. +5. Run some tests, and try out the new features! -If you encounter any problems or find areas where quality could be improved (missing documentation, confusing error messages, etc) please [file an issue](https://github.com/rust-lang/rust/issues/new/choose) and tell us about it! Thank you! +(More details on how to migrate can be found [here](https://doc.rust-lang.org/nightly/edition-guide/editions/transitioning-an-existing-project-to-a-new-edition.html) and within each of the [chapters](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html) describing the changes in Rust 2024.) -### What comes next +If you encounter any problems or see areas where we could make the experience better, tell us about it by [filing an issue](https://github.com/rust-lang/rust/issues/new/choose). -Rust 2024 is scheduled to hit stable in Rust 1.85, which will be released on February 20th, 2025. +### Coming next + +Rust 2024 will enter the beta channel on 2025-01-09, and will be released to stable Rust with Rust 1.85 on 2025-02-20. From d9ae53df09bcf3d8e423f65519c6b473a9329595 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Wed, 27 Nov 2024 04:37:13 +0000 Subject: [PATCH 3/4] Describe how to handle a `rust-version` If someone has an older MSRV than `1.85`, the person will hit an error, so let's describe this step. We'd probably have done this as a sub bullet point, but the rendering of that does not look elegant. --- posts/2024-11-27-Rust-2024-public-testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts/2024-11-27-Rust-2024-public-testing.md b/posts/2024-11-27-Rust-2024-public-testing.md index 3d6b44934..77e26a8a2 100644 --- a/posts/2024-11-27-Rust-2024-public-testing.md +++ b/posts/2024-11-27-Rust-2024-public-testing.md @@ -15,7 +15,7 @@ You can help right now to make this edition a success by testing Rust 2024 on yo 1. Install the most recent nightly with `rustup update nightly`. 2. In your project, run `cargo +nightly fix --edition`. -3. Edit `Cargo.toml` and change the edition field to say `edition = "2024"`. +3. Edit `Cargo.toml` and change the edition field to say `edition = "2024"` and, if you have a `rust-version` specified, set `rust-version = "1.85"`. 4. Run `cargo +nightly check` to verify your project now works in the new edition. 5. Run some tests, and try out the new features! From 8848ad83235eb3c53f32c126a9e1402c97ae755f Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Wed, 27 Nov 2024 04:40:03 +0000 Subject: [PATCH 4/4] Add footnote describing "nightly beta" --- posts/2024-11-27-Rust-2024-public-testing.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/posts/2024-11-27-Rust-2024-public-testing.md b/posts/2024-11-27-Rust-2024-public-testing.md index 77e26a8a2..0ab89649a 100644 --- a/posts/2024-11-27-Rust-2024-public-testing.md +++ b/posts/2024-11-27-Rust-2024-public-testing.md @@ -9,7 +9,7 @@ team: the Edition 2024 Project Group