台灣 AI x AEC 情報BY FBI SICENTER
AI × AEC · CURATED INSIGHT

Rust 1.100.0 Released: Cargo Adds Package Cooldown and Never Type Stabilizes

Cybersecurity and privacy

The Rust team released Rust 1.100.0, introducing a release cooldown mechanism in Cargo to delay adopting newly published dependencies and reduce supply chain attack risks. The update also officially stabilizes the Never Type (!) and custom allocator interfaces.

Rust 1.100.0 Released: Cargo Adds Package Cooldown and Never Type Stabilizes
AI-generated concept illustration; not an event photograph.

The Rust development team has launched Rust 1.100.0. For dependency management, Cargo introduces an optional package release cooldown mechanism. Developers can configure a waiting period in days, instructing Cargo to skip versions published within that window to lower the risk of immediately adopting undetected malicious packages. This feature requires manual opt-in and does not alter versions locked in Cargo.lock or packages installed directly via Cargo install commands. Additionally, the Never Type (!) has officially reached stability, expanding beyond function return types into other type positions alongside adjusted fallback inference rules. The release also stabilizes core custom allocator interfaces for Vec and Box.

Key takeaways

  • Cargo adds a package release cooldown allowing developers to skip newly published versions and mitigate supply chain security risks.
  • The cooldown mechanism requires developer opt-in and does not apply to versions recorded in Cargo.lock or Cargo install commands.
  • Never Type (!) is officially stabilized for broader type positions, though changes to type fallback rules may break compilation in rare cases.
  • Core custom allocator interfaces are stabilized for dynamic array Vec and smart pointer Box, though not yet extended to all standard containers.

Source:iThome Read the original ↗

Prepared, checked and automatically published by AI; not individually reviewed by a human. Translation checked by AI.

← All articles