|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: "Announcing Rust 1.69.0" |
| 4 | +author: The Rust Release Team |
| 5 | +release: true |
| 6 | +--- |
| 7 | + |
| 8 | +The Rust team is happy to announce a nice version of Rust, 1.69.0. Rust is a programming language empowering everyone to build reliable and efficient software. |
| 9 | + |
| 10 | +If you have a previous version of Rust installed via rustup, you can get 1.69.0 with: |
| 11 | + |
| 12 | +```console |
| 13 | +rustup update stable |
| 14 | +``` |
| 15 | + |
| 16 | +If you don't have it already, you can [get `rustup`](https://www.rust-lang.org/install.html) from the appropriate page on our website, and check out the [detailed release notes for 1.69.0](https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1690-2023-04-20) on GitHub. |
| 17 | + |
| 18 | +If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (`rustup default beta`) or the nightly channel (`rustup default nightly`). Please [report](https://github.com/rust-lang/rust/issues/new/choose) any bugs you might come across! |
| 19 | + |
| 20 | +## What's in 1.69.0 stable |
| 21 | + |
| 22 | +Rust 1.69.0 doesn't contain major new features. Instead, it focuses on smaller improvements. |
| 23 | + |
| 24 | +### Cargo now suggests to automatically fix some warnings |
| 25 | + |
| 26 | +Rust 1.29.0 added a Cargo subcommand to automatically fixing some compilation warnings. Since then, the amount of warnings that can be fixed automatically steadily increased, and support for automatically fixing a subset of Clippy warnings was introduced. |
| 27 | + |
| 28 | +Starting from Rust 1.69.0, Cargo will suggest running `cargo fix` or `cargo clippy --fix` when it detects some warnings are automatically fixable. |
| 29 | + |
| 30 | +### Debug information is not included in build scripts by default anymore |
| 31 | + |
| 32 | +To improve compilation speed, Cargo now avoids emitting debug information in build scripts by default. There will be no visible effect when build scripts execute successfully, but backtraces in build scripts will contain less information. |
| 33 | + |
| 34 | +If you need to debug a buggy build script, you can add this snippet to your `Cargo.toml` to emit debug information again: |
| 35 | + |
| 36 | +```toml |
| 37 | +[profile.dev.build-override] |
| 38 | +debug = true |
| 39 | +[profile.release.build-override] |
| 40 | +debug = true |
| 41 | +``` |
| 42 | + |
| 43 | +### Stabilized APIs |
| 44 | + |
| 45 | +- [`CStr::from_bytes_until_nul`](https://doc.rust-lang.org/stable/core/ffi/struct.CStr.html#method.from_bytes_until_nul) |
| 46 | +- [`core::ffi::FromBytesUntilNulError`](https://doc.rust-lang.org/stable/core/ffi/struct.FromBytesUntilNulError.html) |
| 47 | + |
| 48 | +These APIs are now stable in const contexts: |
| 49 | + |
| 50 | +- [`SocketAddr::new`](https://doc.rust-lang.org/stable/std/net/enum.SocketAddr.html#method.new) |
| 51 | +- [`SocketAddr::ip`](https://doc.rust-lang.org/stable/std/net/enum.SocketAddr.html#method.ip) |
| 52 | +- [`SocketAddr::port`](https://doc.rust-lang.org/stable/std/net/enum.SocketAddr.html#method.port) |
| 53 | +- [`SocketAddr::is_ipv4`](https://doc.rust-lang.org/stable/std/net/enum.SocketAddr.html#method.is_ipv4) |
| 54 | +- [`SocketAddr::is_ipv6`](https://doc.rust-lang.org/stable/std/net/enum.SocketAddr.html#method.is_ipv6) |
| 55 | +- [`SocketAddrV4::new`](https://doc.rust-lang.org/stable/std/net/struct.SocketAddrV4.html#method.new) |
| 56 | +- [`SocketAddrV4::ip`](https://doc.rust-lang.org/stable/std/net/struct.SocketAddrV4.html#method.ip) |
| 57 | +- [`SocketAddrV4::port`](https://doc.rust-lang.org/stable/std/net/struct.SocketAddrV4.html#method.port) |
| 58 | +- [`SocketAddrV6::new`](https://doc.rust-lang.org/stable/std/net/struct.SocketAddrV6.html#method.new) |
| 59 | +- [`SocketAddrV6::ip`](https://doc.rust-lang.org/stable/std/net/struct.SocketAddrV6.html#method.ip) |
| 60 | +- [`SocketAddrV6::port`](https://doc.rust-lang.org/stable/std/net/struct.SocketAddrV6.html#method.port) |
| 61 | +- [`SocketAddrV6::flowinfo`](https://doc.rust-lang.org/stable/std/net/struct.SocketAddrV6.html#method.flowinfo) |
| 62 | +- [`SocketAddrV6::scope_id`](https://doc.rust-lang.org/stable/std/net/struct.SocketAddrV6.html#method.scope_id) |
| 63 | + |
| 64 | +### Other changes |
| 65 | + |
| 66 | +Check out everything that changed in [Rust](https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1690-2023-04-20), [Cargo](https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-169-2023-04-20), and [Clippy](https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-169). |
| 67 | + |
| 68 | +## Contributors to 1.69.0 |
| 69 | + |
| 70 | +Many people came together to create Rust 1.69.0. We couldn't have done it without all of you. [Thanks!](https://thanks.rust-lang.org/rust/1.69.0/) |
0 commit comments