-
Dear Sea ORM creators / maintainers, first of all, thanks a lot for all the effort you seem to spend on this nice peace of software. I was just skimming around to look for a ORM to try for a new project I am trying to build. While knowing diesel (no it's not async, so it's not really interesting to me anymore) and also trying rbatis, Sea ORM looks the most promising to be honest. I have been working with sqlx before but wished for a more high level layer for regular crud operations. I have been trying to pull in Sea ORM in an quasi active project with openidconnect / oauth dependency, however failed to pull in Sea ORM. I got a cyclic dependency error: > cargo build
Updating crates.io index
error: cyclic package dependency: package `ahash v0.7.4` depends on itself. Cycle:
package `ahash v0.7.4`
... which is depended on by `hashbrown v0.11.2`
... which is depended on by `indexmap v1.7.0`
... which is depended on by `serde_json v1.0.67`
... which is depended on by `wasm-bindgen v0.2.77`
... which is depended on by `js-sys v0.3.54`
... which is depended on by `getrandom v0.2.3`
... which is depended on by `ahash v0.7.4 I was a bit puzzled and did a I then wanted to do a minimal example for reproduction in a clean project ... I failed! I was unabled to reproduce, which left me puzzled. The only thing for me, left to do was to do Anyways, other people pulling Sea ORM in existing projects might stumble upon this issue and do not jump on the train. A simple 'cargo update' instruction for the above error somewhere in the documentation could help :) Keep up the great work and feel free to close if too minor for you guys! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
it's caused by this issue:tkaitchuck/aHash#95. Sea-orm can not solved this question. |
Beta Was this translation helpful? Give feedback.
-
@baoyachi thanks for the quick reply! I never claimed that sea orm can solve the issue, sorry if that somehow sounded like that (which is why I put solved in the ticket title). I just wanted to point out that this issue happened to me while adding sea orm to the project and never happend before with any other crate I added. Therefore I thought it might be good to document this here, too, just if someone else stumbles upon this same issue. And if you guys want, you could add a short remark to your already great documentation. No must have, it just came to my mind. |
Beta Was this translation helpful? Give feedback.
-
Thank you @baoyachi for the help. So according to the issue it seems that the problem manifests when the serde feature on wasm-bindgen is enabled. Did you actually have wasm in your dependency tree? Or is it another dependency combo which caused this? I have never encountered it indeed. It might be some case that the Rust library team is not aware of, and so might be worthwhile to boil down the offending crate combo. |
Beta Was this translation helpful? Give feedback.
-
cyclic package dependency: package The issue persists |
Beta Was this translation helpful? Give feedback.
-
Not yet still trying to resolve it. I posted it on a rust channel, someone said he did a cargo check on my cargo.toml and didn't face the issue. So I'm my rust version to the latest release. I'll report back after thatOn Jan 25, 2022 5:43 AM, Billy Chan ***@***.***> wrote:
Hey @omofolarin, problem solved?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
it's caused by this issue:tkaitchuck/aHash#95.
Using indexmap = "~1.6.2" works as a workaround.
Sea-orm can not solved this question.