Skip to content

Commit d341db9

Browse files
authored
ci: downgrade hashbrown rather than limiting indexmap (petgraph#714)
Pinning `indexmap = "~2.5.0"` for MSRV prevents users with more current compilers from using the latest petgraph and indexmap together, even though they would otherwise work fine. Instead, dependencies can just be downgraded as needed for CI testing, and users who need the older compiler support can also manage this in their own lock files.
1 parent 73c64b6 commit d341db9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
profile: minimal
3838
toolchain: ${{ matrix.rust }}
3939
override: true
40+
- name: MSRV downgrade
41+
if: matrix.rust == '1.64.0'
42+
run: |
43+
cargo generate-lockfile
44+
cargo update -p hashbrown --precise 0.15.0
4045
- name: Build
4146
run: |
4247
cargo build --verbose --no-default-features

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ debug = true
3535

3636
[dependencies]
3737
fixedbitset = { version = "0.5.7", default-features = false }
38-
indexmap = "~2.5.0"
38+
indexmap = "2.5.0"
3939
quickcheck = { optional = true, version = "0.8", default-features = false }
4040
serde = { version = "1.0", optional = true }
4141
serde_derive = { version = "1.0", optional = true }

0 commit comments

Comments
 (0)