Sunday, March 8, 2026

Rust 1.94 introduces array home windows to iterate slices

Cargo, the Rust package deal supervisor, now helps the embrace key in configuration recordsdata (.cargo/config.toml), for higher group, sharing, and administration of Cargo configurations throughout environments and initiatives. These embrace paths could also be marked elective if they won’t be current in some circumstances.

Cargo now parses TOML v1.1 for manifests and configuration recordsdata. TOML, for Tom’s Apparent, Minimal Language, is meant to be a minimal configuration file format that’s straightforward to learn because of apparent semantics. Adjustments in TOML 1.1 embrace inline tables throughout a number of traces and with trailing commas, xHH and e string escape characters, and elective seconds in occasions. Utilizing these options in Cargo.toml will elevate improvement MSRV (minimal supported Rust model) to require the brand new Cargo parser, and third-party instruments that learn the manifest might also have to replace their parsers. Nonetheless, Cargo mechanically rewrites manifests on publish to stay appropriate with older parsers, so it’s nonetheless attainable to help an earlier MSRV.

Rust 1.94 additionally stabilizes 17 APIs. This month’s Rust launch follows the January 22 launch of Rust 1.93, which improved operations involving the DNS resolver for the musl implementation of the C normal library.

Related Articles

Latest Articles