Skip to content

Commit

Permalink
Switch to using -Z direct-minimal-versions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
d-e-s-o committed Nov 4, 2023
1 parent a5c137c commit 4e87c3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4e87c3f

Please sign in to comment.