Skip to content

Commit

Permalink
Move serde_json_test crate to own workspace
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
dtolnay committed Jun 24, 2023
1 parent e09d78f commit d4c98d0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,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
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 1 addition & 1 deletion tests/crate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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"]
arbitrary_precision = ["serde_json/arbitrary_precision"]
raw_value = ["serde_json/raw_value"]
unbounded_depth = ["serde_json/unbounded_depth"]

0 comments on commit d4c98d0

Please sign in to comment.