From cc39bef8b7246438616785134314a082ac5e4db1 Mon Sep 17 00:00:00 2001 From: Jose Storopoli Date: Wed, 2 Sep 2026 19:28:02 -0300 Subject: [PATCH] chore(cargo): set incompatible-publish-age to deny explicitly deny is cargo's default, but a user-level ~/.cargo/config.toml with "allow" would otherwise switch the cooldown off for this repo. The repo config wins over the home config, while the CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE environment variable still overrides both for one-off updates. Suggested by Robin. --- .cargo/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index e6e617d..d8d2edf 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -11,3 +11,9 @@ min-publish-age = true [registry] global-min-publish-age = "14 days" + +# Reject too-new versions even when a user-level cargo config sets "allow". +# The CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE environment variable still +# overrides this for one-off updates. +[resolver] +incompatible-publish-age = "deny"