BuildRiot
Sign in

Article · Security

Rust 1.100 adds opt-in dependency cooldowns with lockfile and installation exceptions

Rust 1.100 lets Cargo delay newly published dependencies, but upgrading does not activate a waiting period. The feature’s usefulness depends on urgent-patch procedures, lockfile updates, registry timestamps and an explicit exception for tool installation.

A warmly lit miniature wooden depot holds an orange parcel in a red-framed waiting cabinet, with a blue switch, an open lower passage, and a separate toolbox hatch.
Illustration: BuildRiot (AI-generated)

Key takeaway

A cooldown gives scanners and reviewers time to identify a malicious release before a project adopts it. Developers need to check where the delay applies and keep urgent fixes moving without disabling their routine update policy.

A waiting period that must be switched on

Rust 1.100, released on November 12, 2026, added a stable way to delay newly published dependencies, with no waiting period enabled by default. Cargo’s minimum-publication-age resolution excludes releases younger than the configured threshold. The default duration is zero, so upgrading alone does not activate a delay. The Rust announcement describes the feature as time for scanners and community reviewers to identify malicious releases. Sources: Rust Blog, The Cargo Book

The announcement demonstrates a three-day window with the repository configuration below. Cargo reports the versions it holds back and their publication ages. The configuration reference accepts integer durations in seconds, minutes, hours, days, weeks or months. A registry-specific duration overrides the global setting, allowing different waiting periods for different registries. Sources: Rust Blog, The Cargo Book

# .cargo/config.toml
[registry]
global-min-publish-age = "3 days"

Configuration placement affects whether the delay applies. Cargo invocations from the workspace root do not load configuration from individual member directories. Environment variables override configuration files, and command-line configuration overrides environment variables. Teams should check the effective configuration used by automated builds before treating a checked-in file as an enforced policy. Sources: The Cargo Book

Time creates an opportunity to intervene

RFC 3923, the feature’s design proposal, describes two potential benefits: time to discover malicious releases and more gradual exposure to accidental regressions. Both depend on useful activity during the waiting period. The proposal identifies scanners, reviewers and maintainers noticing stolen credentials as possible sources of detection. Reaching the age threshold does not establish that anyone examined a release. Sources: The Rust RFC Book

The proposal also warns that widespread delays could postpone defect discovery because fewer people try new versions early. A cooldown therefore manages exposure without establishing package trustworthiness. The table below uses hypothetical events to explain that distinction. A waiting period can delay a malicious release, but it can also delay a necessary fix. Sources: The Rust RFC Book

Table

Hypothetical outcomes under a three-day cooldown

Hypothetical eventEffect of a three-day cooldown
Malicious release is published and removed from eligibility within six hoursCan prevent its initial selection during that interval
Malicious release remains eligible and undetected for ten daysBecomes age-eligible after three days
Necessary security fix is published todayAlso delayed unless an exception is made
Compromised version was already admittedWaiting does not remediate the compromise
These scenarios illustrate the age gate and do not measure attack prevention.Sources: Rust Blog, The Cargo Book, The Rust RFC Book

Choose a duration around patching requirements

Teams can start with three days for routine updates and adjust the interval against their patching requirements. Three days is the Rust announcement’s example, not a demonstrated safety threshold. Neither the announcement nor the design proposal establishes an optimal Rust-specific duration or an attack-prevention percentage. A seven-day policy is another option for teams willing to accept longer delays, provided they define an urgent-fix process. Sources: Rust Blog, The Rust RFC Book

The choice should reflect the cost of waiting as well as the risk of adopting fresh code. Frequent exceptions for ordinary work are a reason to reconsider whether the duration fits the release process. Slow urgent remediation is a reason to examine whether exceptions are too difficult to make. The following local measures can help teams evaluate the policy against operational needs.

  • Track how often the cooldown blocks a required release.
  • Measure how long urgent patches take to reach production.
  • Count exceptions that also change transitive dependencies.
  • Check whether routine updates reverse approved fixes.

Make urgent exceptions targeted and reviewable

The release announcement documents an exception that combines an age-policy override with a precise package version. Its example targets clap 4.6.9, as shown below. The example illustrates the mechanism and makes no claim that this version fixes a vulnerability. Before making an exception, verify the intended fixed version against the relevant advisory and upstream release. Sources: Rust Blog

CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow \
  cargo update clap --precise 4.6.9

A precise target can still change more than one dependency: RFC 3923 says the override can admit the selected version and transitive dependencies. Review the complete Cargo.lock diff, run relevant tests and record why the exception was necessary. Keep the override confined to the update operation. The configuration reference says the allow policy disables age exclusion, so leaving it enabled would defeat the routine waiting period. Sources: The Cargo Book, The Rust RFC Book

The announcement says the selected version enters Cargo.lock and remains there until a later update re-resolves it. Follow-up update review therefore belongs in the emergency workflow. Check that subsequent dependency changes preserve the intended fix. Treat the immediate patch and the next routine update as connected review tasks. Sources: Rust Blog

Lockfiles preserve choices, while updates can reconsider them

Cargo’s configuration reference says the deny policy excludes versions that are too young unless they already exist in the lockfile. Enabling a cooldown therefore does not retrospectively reject every recently selected dependency. Keeping an existing resolution differs from asking Cargo to choose versions again. The release announcement makes that distinction relevant by warning that a later update can re-resolve an admitted version. Sources: Rust Blog, The Cargo Book

ImportStatic reported an experiment using Cargo 1.100.0-beta.5, a seven-day window and the live crates.io index. Builds, tests and dependency-tree inspection retained existing locked versions. An unrestricted update downgraded itoa from 1.0.19 to 1.0.18 and uuid from 1.29.2 to 1.29.0. A targeted update of another package preserved the admitted uuid version. Raising the direct version requirement caused an update to fail instead of selecting a version below that requirement. The experiment used a beta and changing registry data, so it does not establish identical outcomes on stable Rust 1.100. Sources: ImportStatic

The practical lesson is to review version movement in both directions. A downgrade that satisfies an age policy still needs to meet the project’s patching requirements. Treat the experiment’s versions as examples of resolution behavior, without assuming they contain vulnerabilities. Inspect the complete update result and check that previously approved fixes remain in place.

Check registry coverage and tool installation separately

The release announcement says versions without pubtime, the publication timestamp, are never held back. Missing metadata therefore permits selection rather than causing rejection. RFC 3923 says mirrors should preserve the timestamp, while Git and path dependencies fall outside this mechanism. It also says local registries and vendored sources typically lack that timestamp. Organizations should inspect their actual registry or mirror metadata before treating cooldowns as a comprehensive control. Sources: Rust Blog, The Rust RFC Book

Tool installation has an explicit exception. The release announcement says Cargo’s installation command ignores minimum publication age for both the installed crate and its dependencies. That differs from the earlier RFC’s proposed installation behavior; the announcement describes the shipped feature. The announcement suggests selecting an explicit tool version, using the example below. Sources: Rust Blog, The Rust RFC Book

cargo install foo@1.2.3

Selecting a specific tool version does not establish that its dependencies satisfy an age policy, given the installation exception. Teams should give continuous integration setup and developer-tool installation their own review process. When adopting a cooldown, exercise the urgent-update procedure and inspect subsequent routine updates. Check the registries and commands used in practice before relying on the configured delay. Sources: Rust Blog

Attribution

Sources

  1. 1Rust BlogAnnouncing Rust 1.100.0Source published (UTC)
  2. 2The Cargo BookConfiguration
  3. 3The Rust RFC Book3923-cargo-min-publish-age
  4. 4ImportStaticCargo dependency cooldown (min-publish-age) in Rust 1.100

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on Security

All Security stories
Rust 1.100 adds opt-in dependency cooldowns with lockfile and installation exceptions · BuildRiot