跨越时代的 Rust

Rust has undergone significant changes over the years:

  • 1.0 to 2018 edition: Focused on finishing 1.0 job with language and library stabilizations, performance improvements. Notable language changes include ? operator, inclusive ranges, returning Result from main and tests, various import and macro enhancements, and more. Library changes include SIMD intrinsics, Duration, etc. Tooling improvements like Rustup 1.0, Clippy and Rustfmt 1.0, etc.
  • 2018 edition to 2021 edition: Slower pace with a few big new features like async functions, const generics. Language saw improvements like using Self in type where clauses. Library additions like Pin, Unpin, etc. Tooling had new feature resolver, alternate registries, etc.
  • 2021 edition to today: Some big additions like generic associated types, let else, etc. Library got scoped threads, new collection methods. Tooling had cargo add, cargo remove, etc. and Rust Analyzer distributed by rustup.

In general, Rust has matured with a steady stream of changes improving various aspects and supporting a wider range of use cases.

阅读 12
0 条评论