-
Notifications
You must be signed in to change notification settings - Fork 192
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
cyclic dependency getrandom ===> getrandom #231
Comments
seems related to : tkaitchuck/aHash#95 |
Just a thought but have you tried resolver="2" for cargo? (it might not aggregate quite so many features) |
As noted in the aHash issue, probably the best place to fix this issue will be on the |
This works great : Closing the issue as more follow up arriving on the aHash issue |
@tomasro27 I'm not sure I understand what you're talking about. The The only thing the We do not make use of that deprecated future, and we recommended that others do not as well. I don't think there's anything else for this crate to do here, but, as always, patches are welcome if they're is something that we can do. |
Sorry about the confusion. wasm-bindgen deprecated JsValue::from_serde and JsValue::into_serde, not JsValue. They claim this way wasm-bindgen does not depend on serde_json and the cyclic should be fixed. I tried updating wasm-bindgen to 0.2.84 (latest) on getrandom, and pulled that version on my project, but I still got the dependency cycle. So not sure what's the right fix then.
|
I think this comment by you makes sense @josephlr |
@tomasro27 that is correct. Unfortunately, updating the version of |
For anyone that might find this helpful, you can run cargo metadata > metadata.json to generate a file with all the crates/dependencies on your project. Then find all usages of |
Serde-serialize is deprecated, see rustwasm/wasm-bindgen#3031. This fix is required to prevent circular dependencies, see rust-random/getrandom#231 Fixes seanmonstar#2155
Hello, I have a pretty big workspace with lots of cumulated dependencies and I got stuck on a cyclic dependency conundrum :
Basically, through some features activation in random crates, getrandom is dependent on getrandom ...
Tried to remove cargo lock, to update all dependencies at the same time.
Checked if this was true (
it is
, there is a path with optional features activations that lead from getrandom to ... getrandom!)Do you have an idea on how to get around this problem ?
P.S. : I'm really sorry to ask you this question, you are obviously not responsible for a dependency cycle going around multiple other crates all over crates.io. If you just have a clue on how to solve this or a hint to a channel I can ask this question to somebody able to answer, it's just about very fine for me ...
The text was updated successfully, but these errors were encountered: