The stable version of Rust 1.69.0 has been released .
What's in the 1.69.0 stable release
Cargo suggests automatically fixing warnings
Rust 1.29.0 added the cargo fix subcommand to automatically fix some simple compiler warnings. Since then, the number of warnings that can be fixed automatically has continued to increase steadily. Additionally, support has been added for automatically fixing some simple Clippy warnings.
As of version 1.69.0, Cargo will suggest running cargo fix or cargo clippy --fix when it detects an autofixable warning:
warning: unused import: `std:#⃣:Hash`
--> src/main.rs:1:5
|
1 | use std:#⃣:Hash;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: `foo` (bin "foo") generated 1 warning (run `cargo fix --bin "foo"` to apply 1 suggestion)
Note that the full Cargo call shown above is only necessary if you want to apply fixes precisely to a single crate. If one wants to apply the fix to all default members of the workspace, then a simple cargo fix
(with no additional parameters) suffices.
Debug information is no longer included in build scripts by default
To improve compilation speed, Cargo now avoids emitting debug messages in build scripts by default. There will be no visible effects when the build script executes successfully, but the traceback in the build script will contain less information.
If you want to debug your build script, you can add this snippet Cargo.toml
to emit debug information again:
[profile.dev.build-override]
debug = true
[profile.release.build-override]
debug = true
stable API
These APIs are now stable in const context:
SocketAddr::new
SocketAddr::ip
SocketAddr::port
SocketAddr::is_ipv4
SocketAddr::is_ipv6
SocketAddrV4::new
SocketAddrV4::ip
SocketAddrV4::port
SocketAddrV6::new
SocketAddrV6::ip
SocketAddrV6::port
SocketAddrV6::flowinfo
SocketAddrV6::scope_id
More to see all the changes in this version of Rust , Cargo , and Clippy .