Skip to content

Commit

Permalink
Merge pull request #1031 from serde-rs/indexmap
Browse files Browse the repository at this point in the history
Update indexmap dependency used for preserve_order feature to version 2
  • Loading branch information
dtolnay authored Jun 24, 2023
2 parents 5145907 + 706fc2b commit 9508e50
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: [beta, 1.56.1]
rust: [beta, 1.64.0, 1.56.1]
os: [ubuntu]
include:
- rust: stable
Expand All @@ -52,16 +52,18 @@ jobs:
with:
toolchain: ${{matrix.rust}}
targets: ${{matrix.target}}
- run: cargo check
- run: cargo check --features float_roundtrip
- run: cargo check --features arbitrary_precision
- run: cargo check --features raw_value
- run: cargo check --features unbounded_depth
- run: cargo check --manifest-path tests/crate/Cargo.toml
- run: cargo check --manifest-path tests/crate/Cargo.toml --features float_roundtrip
- run: cargo check --manifest-path tests/crate/Cargo.toml --features arbitrary_precision
- run: cargo check --manifest-path tests/crate/Cargo.toml --features raw_value
- run: cargo check --manifest-path tests/crate/Cargo.toml --features unbounded_depth
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,arbitrary_precision
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,raw_value
- run: cargo check --features preserve_order
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,preserve_order
- run: cargo check --manifest-path tests/crate/Cargo.toml --features serde_json/preserve_order
if: matrix.rust != '1.56.1'
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features --features alloc,serde_json/preserve_order
if: matrix.rust != '1.56.1'
- name: Build without std
run: cargo check --manifest-path tests/crate/Cargo.toml --target ${{matrix.target}} --no-default-features --features alloc
if: matrix.target
Expand Down Expand Up @@ -119,5 +121,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/install@cargo-outdated
- run: cargo outdated --workspace --exit-code 1
- run: cargo outdated --exit-code 1
- run: cargo outdated --manifest-path fuzz/Cargo.toml --exit-code 1
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rust-version = "1.36"

[dependencies]
serde = { version = "1.0.100", default-features = false }
indexmap = { version = "1.5.2", features = ["std"], optional = true }
indexmap = { version = "2", optional = true }
itoa = "1.0"
ryu = "1.0"

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

[workspace]
members = ["tests/crate"]

[lib]
doc-scrape-examples = false

Expand Down
2 changes: 0 additions & 2 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ name = "from_slice"
path = "fuzz_targets/from_slice.rs"
test = false
doc = false

[workspace]
3 changes: 2 additions & 1 deletion tests/crate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ serde_json = { path = "../..", default-features = false }
default = ["std"]
std = ["serde_json/std"]
alloc = ["serde_json/alloc"]
preserve_order = ["serde_json/preserve_order"]
#preserve_order = ["serde_json/preserve_order"]
float_roundtrip = ["serde_json/float_roundtrip"]
arbitrary_precision = ["serde_json/arbitrary_precision"]
raw_value = ["serde_json/raw_value"]
unbounded_depth = ["serde_json/unbounded_depth"]

0 comments on commit 9508e50

Please sign in to comment.