From 4e87c3f944b2437ce539714612b720c0bf1b996d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Sat, 4 Nov 2023 12:42:26 -0700 Subject: [PATCH] Switch to using -Z direct-minimal-versions So far we have relied on the unstable -Z minimal-versions switch to the cargo update command in order to downgrade all dependencies to their minimum supported versions to ensure that our own documented minimum supported Rust version is kosher. This option is unlikely to ever be stabilized in this form and a more promising candidate is what is now available with -Z direct-minimal-versions. This option only downgrades the direct dependencies of the crate, which should still be sufficient for our intents and purposes and is less likely to have runtime related performance problems. Switch to using it instead of -Z minimal-versions. --- .github/workflows/test.yml | 2 +- Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b0dd91..1f0b030 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,7 +54,7 @@ jobs: with: profile: minimal toolchain: nightly - - run: cargo +nightly -Z minimal-versions update + - run: cargo +nightly -Z direct-minimal-versions update - name: Install minimum Rust uses: actions-rs/toolchain@v1 with: diff --git a/Cargo.toml b/Cargo.toml index 7d56937..6a6fda0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,8 +36,8 @@ trace = [] log = [] [dependencies] -proc-macro2 = {version = "1.0.32", default-features = false} -quote = {version = "1.0", default-features = false} +proc-macro2 = {version = "1.0.60", default-features = false} +quote = {version = "1.0.25", default-features = false} syn = {version = "2.0", default-features = false, features = ["full", "parsing", "printing", "proc-macro"]} [dev-dependencies]