Rust 1.100.0 is here, and the headline feature is a new Cargo knob: a “dependency publish cooling-off period.” Until now, devs often grabbed the newest dependency that matched version requirements—sometimes right when a malicious crate lands, before anyone has time to notice. Rust’s new mechanism gives you breathing room. You can set a wait window (e.g., 3 days). Cargo will skip dependency versions still within the cooling-off period and instead select from other compatible versions. That lowers the odds that your project touches a suspicious package immediately after release. Important: the cooling-off period isn’t “automatic security.” It must be enabled by you, doesn’t affect versions already pinned in Cargo.lock, and doesn’t apply when using the Cargo installer. Rust is clear: it mitigates supply-chain risk, but it can’t replace audits and security checks. Language win too: the Never Type “!” is now fully stable (and some inference rules changed). Plus: stability for key custom allocator APIs, and Cargo improvements for unused deps and build dir conflicts. #RustLang #Cargo #SupplyChainSecurity #NeverType #SoftwareEngineering
Want to learn more? Visit Explore the world, stay updated on travel insights and international affairs, and discover authentic stories from real life
评论
发表评论