宣布 Rust 1.84.0 | Rust 博客

Rust 1.84.0 is announced. If you have a previous version installed via rustup, update with rustup update stable. Get rustup from the website if not already. Check detailed release notes.

  • What's in 1.84.0 stable:

    • Cargo considers Rust versions for dependency version selection: Stabilizes the MSRV-aware resolver. Can opt-in via .cargo/config.toml or setting package.resolver = "3". Gives library authors more flexibility.
    • Migration to the new trait solver begins: The compiler moves to a new trait solver. Used for checking trait impl coherence, fixes some correctness issues, and improves proving impl non-overlap.
    • Strict provenance APIs: Pointers have provenance. New APIs avoid ambiguity in pointer casts. See standard library documentation for more details.
    • Stabilized APIs: Several APIs are now stable in const contexts.
  • Other changes: Check the release pages for changes in Rust, Cargo, and Clippy.
  • Contributors to 1.84.0: Many people contributed. Thanks to them all.
阅读 7
0 条评论