-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: cyclic package dependency: package serde_json v0.7.3
depends on itself
#91
Comments
This is caused by linked-hash-map using serde_json for their tests. Cargo does not yet support optional dev-dependencies (rust-lang/cargo#1596) so they declare a regular dependency - which is circular. I have a PR serde-rs/serde#412 that will add an alternative way for them to test the serde impls without depending on serde_json. Once that merges, I will make a linked-hash-map PR of https://github.com/dtolnay/linked-hash-map/commit/dabca618762ed31b50bfa5ea92b5bbfc305d57c5 to remove the serde_json dependency. |
|
Okay, that would be great. Let me know when it’s done, if you could. Thanks.
|
It looks like the PR has already been merged, just not closed yet? |
The first one has merged. I am marking off the steps in my previous comment as they happen. |
@alexreg I just published v0.7.4 with a fix. |
@dtolnay Thanks!
|
This occurs only when I include the
preserve_order
feature.serde_json = { version = "0.7", features = ["preserve_order"] }
The text was updated successfully, but these errors were encountered: