Rust’s developers report that version 1.65 is nearing the finishing line after nearly six years of development. Among other features, the release introduces stable generic associated types (GATs).
Rust’s developers view the release as monumental. The team’s been working hard since the project’s inception in 2016. The introduction of stable GATs is an important milestone for the programming language.
GATs ensure that ‘generics’ like type and lifetime are supported on ‘associated types’. This makes it possible to have a generic on type aliases in so-called traits. Ultimately, GATs form the basis for a range of new patterns and APIs, Rust’s developers explained.
The development of GATs was a long process due to the work required in various internal Rust components. Despite the team’s efforts, the GATs implemented in version 1.65 are subject to some limitations, the developers indicate.
Rust 1.65 introduces several new features in addition to GATs. These include a compiler update to LLVM 15 and a stable ‘let else’ attribute.
The pre-release of Rust 1.65 was launched last week for testing purposes. The deployment of the final version will follow tomorrow (November 3, 2022). The most recent version of the programming language (1.64) has been available since September this year.