Skip to content

chore: refuse crate versions younger than 7 days - #5

Merged
ExtraToast merged 1 commit into
mainfrom
chore/cargo-min-publish-age
Nov 9, 2026
Merged

ExtraToast merged 1 commit into
mainfrom
chore/cargo-min-publish-age

Conversation

@ExtraToast

Copy link
Copy Markdown
Contributor

Adds .cargo/config.toml with registry.global-min-publish-age = "7 days". Part of JorisJonkers-dev/workspace#167: no dependency younger than 7 days is installed anywhere in the estate.

  • Cargo 1.100 (due 2026-11-12) stabilises the setting (feat(resolver): Stabilize min-publish-age rust-lang/cargo#17335, RFC 3923). Because resolver.incompatible-publish-age defaults to deny, the resolver then skips any version published less than 7 days ago, unless Cargo.lock already holds it.
  • This repository still pins Rust 1.99.1 in mise.toml. Cargo 1.99 prints warning: ignoring registry.global-min-publish-age without -Zmin-publish-age and otherwise resolves as before. The setting takes effect when Renovate moves the toolchain to 1.100.

Checked locally with Cargo 1.99.0: cargo metadata --locked and cargo tree --locked pass, and only that warning appears.

Cargo 1.100 stabilises registry.global-min-publish-age (rust-lang/cargo#17335).
With resolver.incompatible-publish-age at its default, deny, the resolver
skips versions published less than 7 days ago unless Cargo.lock already
holds them. Cargo 1.99 warns that it ignores the key and otherwise resolves
as before, so this lands ahead of the toolchain bump.

Refs JorisJonkers-dev/workspace#167
@ExtraToast ExtraToast added type: chore Maintenance work without intended behavior change. component: dependencies Dependency update or dependency policy. labels Nov 9, 2026
@ExtraToast
ExtraToast merged commit 4bd8ad0 into main Nov 9, 2026
2 checks passed
@ExtraToast
ExtraToast deleted the chore/cargo-min-publish-age branch November 9, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: dependencies Dependency update or dependency policy. type: chore Maintenance work without intended behavior change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant