Skip to content

Commit 9508e50

Browse files
authored
Merge pull request #1031 from serde-rs/indexmap
Update indexmap dependency used for preserve_order feature to version 2
2 parents 5145907 + 706fc2b commit 9508e50

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
strategy:
3838
fail-fast: false
3939
matrix:
40-
rust: [beta, 1.56.1]
40+
rust: [beta, 1.64.0, 1.56.1]
4141
os: [ubuntu]
4242
include:
4343
- rust: stable
@@ -52,16 +52,18 @@ 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
64-
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,preserve_order
63+
- run: cargo check --manifest-path tests/crate/Cargo.toml --features serde_json/preserve_order
64+
if: matrix.rust != '1.56.1'
65+
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,serde_json/preserve_order
66+
if: matrix.rust != '1.56.1'
6567
- name: Build without std
6668
run: cargo check --manifest-path tests/crate/Cargo.toml --target ${{matrix.target}} --no-default-features --features alloc
6769
if: matrix.target
@@ -119,5 +121,5 @@ jobs:
119121
steps:
120122
- uses: actions/checkout@v3
121123
- uses: dtolnay/install@cargo-outdated
122-
- run: cargo outdated --workspace --exit-code 1
124+
- run: cargo outdated --exit-code 1
123125
- run: cargo outdated --manifest-path fuzz/Cargo.toml --exit-code 1

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ rust-version = "1.36"
1313

1414
[dependencies]
1515
serde = { version = "1.0.100", default-features = false }
16-
indexmap = { version = "1.5.2", features = ["std"], optional = true }
16+
indexmap = { version = "2", optional = true }
1717
itoa = "1.0"
1818
ryu = "1.0"
1919

@@ -28,9 +28,6 @@ serde_derive = "1.0"
2828
serde_stacker = "0.1"
2929
trybuild = { version = "1.0.49", features = ["diff"] }
3030

31-
[workspace]
32-
members = ["tests/crate"]
33-
3431
[lib]
3532
doc-scrape-examples = false
3633

fuzz/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ name = "from_slice"
1717
path = "fuzz_targets/from_slice.rs"
1818
test = false
1919
doc = false
20-
21-
[workspace]

tests/crate/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ serde_json = { path = "../..", default-features = false }
1515
default = ["std"]
1616
std = ["serde_json/std"]
1717
alloc = ["serde_json/alloc"]
18-
preserve_order = ["serde_json/preserve_order"]
18+
#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)