Skip to content

chore(cargo): add 1 day dependency cooldown - #426

Merged
Sébastien Duquette (sduquette-devolutions) merged 1 commit into
masterfrom
chore/cargo-min-publish-age
Nov 16, 2026
Merged

Sébastien Duquette (sduquette-devolutions) merged 1 commit into
masterfrom
chore/cargo-min-publish-age

Conversation

@sduquette-devolutions

Copy link
Copy Markdown
Contributor

Adds a 1 day dependency cooldown using Cargo's new registry.global-min-publish-age setting (Rust 1.100) in the root .cargo/config.toml. Cargo will not resolve a crate version (direct or transitive) until it has been published for at least 24 hours, which reduces exposure to freshly published malicious releases.

Cargo.lock is also updated with cargo update, which now resolves against the cooldown:

> cargo update
    Updating crates.io index
     Locking 25 packages to highest compatible versions as of 24 hours ago
    Updating aes v0.9.3 -> v0.9.4
    Removing async-trait v0.1.92
    Updating cc v1.10.0 -> v1.11.2
    Updating const-oid v0.10.2 -> v0.10.3
    Updating errno v0.3.14 -> v0.3.15
    Updating inout v0.2.5 -> v0.2.6
    Updating itoa v1.0.18 -> v1.0.19
    Updating js-sys v0.3.106 -> v0.3.107
    Updating log v0.4.34 -> v0.4.35
    Updating rustix v1.1.5 -> v1.1.6
    Updating serde_spanned v1.1.2 -> v1.1.3
    Updating syn v3.0.9 -> v3.0.10
    Updating toml v1.1.8+spec-1.1.0 -> v1.2.1+spec-1.1.0
    Updating toml_datetime v1.1.2+spec-1.1.0 -> v1.1.3+spec-1.1.0
    Updating toml_edit v0.25.17+spec-1.1.0 -> v0.25.19+spec-1.1.0
    Updating toml_writer v1.1.3+spec-1.1.0 -> v1.2.0+spec-1.1.0
    Updating unicode-width v0.2.2 -> v0.2.3
    Updating wasm-bindgen v0.2.129 -> v0.2.130
    Updating wasm-bindgen-futures v0.4.79 -> v0.4.80
    Updating wasm-bindgen-macro v0.2.129 -> v0.2.130
    Updating wasm-bindgen-macro-support v0.2.129 -> v0.2.130
    Updating wasm-bindgen-shared v0.2.129 -> v0.2.130
    Updating wasm-bindgen-test v0.3.79 -> v0.3.80
    Updating wasm-bindgen-test-macro v0.3.79 -> v0.3.80
    Updating wasm-bindgen-test-shared v0.2.129 -> v0.2.130
    Updating winnow v1.0.4 -> v1.0.5

Notes:

  • To take a newer version for a specific update (for example an urgent security fix), use CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow.
  • cargo install ignores the cooldown, so pin versions there.
  • Toolchains older than 1.100 ignore the setting.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sduquette-devolutions
Sébastien Duquette (sduquette-devolutions) merged commit ffdc57a into master Nov 16, 2026
34 checks passed
@sduquette-devolutions
Sébastien Duquette (sduquette-devolutions) deleted the chore/cargo-min-publish-age branch November 16, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants