mirror of
https://github.com/wezterm/wezterm.git
synced 2026-11-08 01:21:45 +08:00
deps: cargo cooldown update
Add a trivial little script to run `cargo cooldown update`. The purpose of the script is to make it a little more discoverable in the future if I or someone else forgets how this works. https://crates.io/crates/cargo-cooldown is required to run this script. Its purpose is to run `cargo update` while respecting the dependency cooldown options found in cooldown.toml in the root of the repo
This commit is contained in:
parent
71ac841b80
commit
73ac6f2802
1804
Cargo.lock
generated
1804
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
6
ci/update-cargo-deps-with-cooldown.sh
Executable file
6
ci/update-cargo-deps-with-cooldown.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
# You need: https://crates.io/crates/cargo-cooldown
|
||||
# This script is logically equivalent to running `cargo update`
|
||||
# but respects dependency cooldown settings found in the cooldown.toml
|
||||
# config file
|
||||
cargo cooldown update
|
||||
34
cooldown.toml
Normal file
34
cooldown.toml
Normal file
@ -0,0 +1,34 @@
|
||||
# Generated by `cargo cooldown init`.
|
||||
# Edit values as needed for your project.
|
||||
|
||||
[cooldown]
|
||||
incompatible-publish-age = "deny"
|
||||
# `floor` keeps initial Cargo.lock versions as the minimum; `ignore` allows lower versions.
|
||||
lockfile-baseline = "floor"
|
||||
|
||||
[registry]
|
||||
global-min-publish-age = "14 days"
|
||||
|
||||
# Optional allow rules.
|
||||
# Add as many `allow.exact` and `allow.package` entries as you need.
|
||||
# `allow.exact` fully allows one exact crate version.
|
||||
# `allow.package` lowers the cooldown for one crate name.
|
||||
# Use `min-publish-age = "0"` in `allow.package` to exclude that crate from cooldown.
|
||||
|
||||
# [allow.global]
|
||||
# minutes = 1440
|
||||
|
||||
# [[allow.package]]
|
||||
# crate = "tokio"
|
||||
# min-publish-age = "1 hour"
|
||||
|
||||
# [[allow.package]]
|
||||
# crate = "openssl"
|
||||
# min-publish-age = "0"
|
||||
|
||||
# [[allow.exact]]
|
||||
# crate = "serde"
|
||||
# version = "1.0.218"
|
||||
# [[allow.exact]]
|
||||
# crate = "serde_json"
|
||||
# version = "1.0.145"
|
||||
Loading…
x
Reference in New Issue
Block a user