@@ -23,16 +23,16 @@ jobs:
23
23
rust :
24
24
- stable
25
25
- 1.46.0 # lib MSRV
26
- - 1.60 .0 # cli MSRV
26
+ - 1.64 .0 # cli MSRV
27
27
include :
28
28
- os : ubuntu-latest
29
29
rust : stable
30
30
lint : 1
31
31
- rust : stable
32
32
rust-args : --all-features
33
33
- rust : 1.46.0
34
- no-lock : 1
35
- - rust : 1.60 .0
34
+ old-cargo-compat : 1
35
+ - rust : 1.64 .0
36
36
rust-args : --all-features
37
37
exclude :
38
38
# rust < 1.54 does not work on macos >= 12:
42
42
- os : macos-11
43
43
rust : stable
44
44
- os : macos-11
45
- rust : 1.60 .0
45
+ rust : 1.64 .0
46
46
runs-on : ${{ matrix.os }}
47
47
steps :
48
48
- name : Checkout source
@@ -56,14 +56,20 @@ jobs:
56
56
57
57
- uses : Swatinem/rust-cache@v1
58
58
59
- # If we're testing with Rust < 1.60, cargo won't be able to find
60
- # the clap version specified in Cargo.lock, so remove the lockfile.
61
- # This is safe because applications that only use us as a library will
62
- # also ignore our Cargo.lock.
63
- # https://users.rust-lang.org/t/optional-dependencies-and-msrv/82151
64
- - name : Prune Cargo.lock
65
- if : matrix.no-lock
66
- run : rm Cargo.lock
59
+ - name : Compatibility fixes for older versions of cargo
60
+ if : matrix.old-cargo-compat
61
+ run : |
62
+ # If we're testing with Rust < 1.60, cargo won't be able to find
63
+ # the clap version specified in Cargo.lock, so remove the lockfile.
64
+ # This is safe because applications that only use us as a library
65
+ # will also ignore our Cargo.lock.
66
+ # https://users.rust-lang.org/t/optional-dependencies-and-msrv/82151
67
+ cargo update -p clap --precise 3.2.25
68
+ # Downgrade the following crates because they require edition 2021
69
+ cargo update -p serde --precise 1.0.156
70
+ cargo update -p thiserror --precise 1.0.39
71
+ cargo update -p quote --precise 1.0.30
72
+ cargo update -p proc-macro2 --precise 1.0.65
67
73
68
74
- name : cargo test
69
75
uses : actions-rs/cargo@v1
0 commit comments