
Rust 1.94 introduces array windows, Cargo config inclusion, annd TOML 1.1 support in Cargo
Rust 1.94 is now available, continuing the language’s focus on performance, type safety, concurrency, and memory safety. One of the main additions is the new array_windows method for slices, which offers a way to iterate over adjacent, fixed-size windows, returning references to constant-length arrays. This enables more type-safe and performant handling of grouped data elements, especially useful where window length can be inferred at compile time.
Alongside iterators, Cargo, the Rust package manager, gains a restructuring feature: configuration files now support the include key. This allows for cleaner organization and sharing of configuration details, helping teams manage settings across different projects or environments. Notably, included config paths can be flagged as optional, accommodating different setups between developers or build scenarios. In addition, Cargo now parses TOML version 1.1 in both manifests and configuration files, allowing use of newer TOML syntax features and improving compatibility with tooling.
Following these core updates, Rust 1.94 also delivers several stabilized APIs and resolves various bugs. These changes collectively aim to enhance daily developer experience and support evolving codebases.