1.62.0

1.62.0 (2022-06-30) #

Language #

Compiler #

* Refer to Rust’s [platform support page][platform-support-doc] for more information on Rust’s tiered platform support.

Libraries #

Stabilized APIs #

Clippy #

Cargo #

  • Added the cargo add command for adding dependencies to Cargo.toml from the command-line. docs
  • Package ID specs now support name@version syntax in addition to the previous name:version to align with the behavior in cargo add and other tools. cargo install and cargo yank also now support this syntax so the version does not need to passed as a separate flag.
  • The git and registry directories in Cargo’s home directory (usually ~/.cargo) are now marked as cache directories so that they are not included in backups or content indexing (on Windows).
  • Added automatic @ argfile support, which will use “response files” if the command-line to rustc exceeds the operating system’s limit.

Compatibility Notes #

Internal Changes #

These changes provide no direct user facing benefits, but represent significant improvements to the internals and overall performance of rustc and related tools.