Skip to content

Commit b17ad68

Browse files
committed
Use minimal dependency versions for MSRV check
1 parent 9ca248a commit b17ad68

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.github/workflows/ci.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
rust: [nightly, beta, stable, "1.56"]
23+
rust: [nightly, beta, stable]
2424
timeout-minutes: 15
2525
steps:
2626
- name: Checkout
@@ -75,18 +75,18 @@ jobs:
7575
MIRIFLAGS: -Zmiri-strict-provenance
7676

7777
minimal:
78-
name: Minimal versions
78+
name: MSRV 1.56
7979
runs-on: ubuntu-latest
8080
timeout-minutes: 15
8181
steps:
8282
- name: Checkout
8383
uses: actions/checkout@v4
8484

85-
- name: Install Rust nightly
85+
- name: Install Rust
8686
run: |
8787
rustup update --no-self-update nightly
88-
rustup default nightly
89-
rustup component add miri
88+
rustup default 1.56
89+
90+
- run: cargo +nightly generate-lockfile -Z minimal-versions
9091

91-
- run: cargo generate-lockfile -Z minimal-versions
9292
- run: cargo check --locked

Cargo.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ abi_stable = { version = "0.11", default-features = false, optional = true }
1616
macros = { version = "0.5", package = "async-ffi-macros", path = "./macros", optional = true }
1717

1818
[dev-dependencies]
19-
# tokio@1.30 has MSRV 1.63, which breaks us. Lock the version here.
20-
# It should not affect end-users since dev-dependencies are not merged.
21-
tokio = { version = "1, <1.30", features = ["macros", "rt-multi-thread", "sync", "time"] }
19+
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "time"] }
2220

2321
[workspace]
2422

macros/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ rust-version = "1.56" # syn 2 requires edition 2021
1414
proc-macro = true
1515

1616
[dependencies]
17-
proc-macro2 = "1.0"
18-
quote = "1.0"
19-
syn = { version = "2.0", features = ["full"] }
17+
proc-macro2 = "1"
18+
quote = "1"
19+
syn = { version = "2", features = ["full"] }
2020

2121
[dev-dependencies]
2222
async-ffi.path = ".."

0 commit comments

Comments
 (0)