Rust 1.69.0 stable version released

 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:

 

More to see all the changes in this version of Rust , Cargo , and Clippy .

 

Guess you like

Origin www.oschina.net/news/237787/rust-1-69-0-released