宣布 Rust 1.87.0 和 Rust 十年!| Rust 博客

  • Announcement: Rust 1.87.0 is announced at the 10 Years of Rust celebration in Utrecht, Netherlands. Today is the 10-year anniversary of Rust 1.0.
  • Update Method: If you have a previous version of Rust installed via rustup, you can get 1.87.0 with rustup update stable. If you don't have rustup, you can get it from the appropriate page on the website and check the detailed release notes.
  • Beta Channel and Nightly Channel: You can update locally to use the beta channel (rustup default beta) or the nightly channel (rustup default nightly) to help test future releases and report any bugs.
  • What's in 1.87.0 stable:

    • Anonymous pipes: Access to anonymous pipes is added to the standard library, including integration with std::process::Command.
    • Safe architecture intrinsics: Most std::arch intrinsics that require target features can now be called in safe code.
    • asm! jumps to Rust code: Inline assembly can now jump to labeled blocks within Rust code.
    • Precise capturing (+ use<...>) in impl Trait in trait definitions: Specific captured generic types and lifetimes can be specified in trait definitions.
    • Stabilized APIs: Many Rust APIs are stabilized, including various methods in Vec, LinkedList, String, etc.
    • Stable in const contexts: Some previously stable APIs are now stable in const contexts.
    • i586-pc-windows-msvc target removal: The Tier 2 target i586-pc-windows-msvc has been removed. Users should migrate to i686-pc-windows-msvc.
  • Other changes: Check the release pages of Rust, Cargo, and Clippy for all the changes.
  • Contributors: Many people contributed to Rust 1.87.0. Thanks to all of them.
阅读 17
0 条评论