Version 1.33 of the Rust systems programming language is now readily available.

Present version: What’s new in Rust 1.33

Rust 1.33 debuted in late February 2019 with the following new options:

  • A new language notion, known as pinning, is now readily available. Pinning permits the developer to specify an object in memory that is assured not to move. The Pin variety and the Unpin marker trait are utilised to implement this.
  • The const fn declaration, utilised to declare functions that can be known as in continual expressions at compile time, has been expanded to cover quite a few a lot more use circumstances, such as let bindings (which includes mutable ones), assignment expressions, and expression statements. In brief, the const fn declaration tends to make a lot more of the language readily available in a compile-time context.
  • The use n as _ syntax permits you to import the impl of a trait without having polluting the namespace it is imported into.
  • Numerous library components have been stabilized by becoming made const.