Cargo, the Rust package deal supervisor, now helps the embrace key in configuration information (.cargo/config.toml), for higher group, sharing, and administration of Cargo configurations throughout environments and initiatives. These embrace paths could also be marked non-compulsory if they won’t be current in some circumstances.
Cargo now parses TOML v1.1 for manifests and configuration information. TOML, for Tom’s Apparent, Minimal Language, is meant to be a minimal configuration file format that’s straightforward to learn resulting from 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 non-compulsory seconds in instances. Utilizing these options in Cargo.toml will increase 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 suitable with older parsers, so it’s nonetheless attainable to assist 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 customary library.
