From b9c6806e45658a5c608f85fe160c05023550cfdf Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 9 Jan 2025 16:50:13 -0600 Subject: [PATCH] Configure cargo to respect MSRV The new 1.84 release has a new feature that makes `cargo update` MSRV-aware. This is what it looks like in practice: Updating crates.io index Updating git repository `https://github.com/fish-shell/rust-pcre2` From https://github.com/fish-shell/rust-pcre2 * [new tag] 0.2.9-utf32 -> origin/tags/0.2.9-utf32 Locking 7 packages to latest Rust 1.70 compatible versions Updating cc v1.2.6 -> v1.2.7 Updating phf v0.11.2 -> v0.11.3 Updating phf_codegen v0.11.2 -> v0.11.3 Updating phf_generator v0.11.2 -> v0.11.3 Updating phf_shared v0.11.2 -> v0.11.3 Updating siphasher v0.3.11 -> v1.0.1 Updating syn v2.0.94 -> v2.0.95 --- .cargo/config.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 000000000..0e9cb46b2 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,3 @@ +[resolver] +# Make cargo 1.84+ respect MSRV (rust-version in Cargo.toml) +incompatible-rust-versions = "fallback"