Skip to content

Commit 706fc2b

Browse files
committed
Do all CI builds with old rustc using shim crate
Fixes the following error when testing against a compiler older than 1.64: error: failed to select a version for the requirement `hashbrown = "^0.14"` candidate versions found which didn't match: 0.13.2, 0.13.1, 0.12.3, ... location searched: crates.io index required by package `indexmap v2.0.0` ... which satisfies dependency `indexmap = "^2"` of package `serde_json v1.0.97` ... which satisfies path dependency `serde_json` of package `serde_json_test v0.0.0`
1 parent d4c98d0 commit 706fc2b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ jobs:
5252
with:
5353
toolchain: ${{matrix.rust}}
5454
targets: ${{matrix.target}}
55-
- run: cargo check
56-
- run: cargo check --features float_roundtrip
57-
- run: cargo check --features arbitrary_precision
58-
- run: cargo check --features raw_value
59-
- run: cargo check --features unbounded_depth
55+
- run: cargo check --manifest-path tests/crate/Cargo.toml
56+
- run: cargo check --manifest-path tests/crate/Cargo.toml --features float_roundtrip
57+
- run: cargo check --manifest-path tests/crate/Cargo.toml --features arbitrary_precision
58+
- run: cargo check --manifest-path tests/crate/Cargo.toml --features raw_value
59+
- run: cargo check --manifest-path tests/crate/Cargo.toml --features unbounded_depth
6060
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc
6161
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,arbitrary_precision
6262
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,raw_value
63-
- run: cargo check --features preserve_order
63+
- run: cargo check --manifest-path tests/crate/Cargo.toml --features serde_json/preserve_order
6464
if: matrix.rust != '1.56.1'
65-
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,preserve_order
65+
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,serde_json/preserve_order
6666
if: matrix.rust != '1.56.1'
6767
- name: Build without std
6868
run: cargo check --manifest-path tests/crate/Cargo.toml --target ${{matrix.target}} --no-default-features --features alloc

tests/crate/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ default = ["std"]
1616
std = ["serde_json/std"]
1717
alloc = ["serde_json/alloc"]
1818
#preserve_order = ["serde_json/preserve_order"]
19+
float_roundtrip = ["serde_json/float_roundtrip"]
1920
arbitrary_precision = ["serde_json/arbitrary_precision"]
2021
raw_value = ["serde_json/raw_value"]
2122
unbounded_depth = ["serde_json/unbounded_depth"]

0 commit comments

Comments
 (0)