Skip to content

Cyclic dependency in sqlx 0.5.9 and json feature #1521

Closed
@cortopy

Description

@cortopy

When installing sqlx 0.5.9 with the json feature, a problem with the aHash crate comes up:

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.64
... which is depended on by wasm-bindgen v0.2.74
... which is depended on by js-sys v0.3.51
... which is depended on by getrandom v0.2.3
... which is depended on by ahash v0.7.4
Error: Process completed with exit code 101.

This is discussed in tkaitchuck/aHash#95

Currently, the only solution is to use sqlx 0.5.7. As per tkaitchuck/aHash#95 (comment) if using indexmap = "~1.6.2" the problem goes away.

Would it be possible to revert it for now in https://github.com/launchbadge/sqlx/blob/master/sqlx-core/Cargo.toml#L166

Activity

cortopy

cortopy commented on Oct 29, 2021

@cortopy
Author

I just saw there's a PR already #1501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @cortopy

      Issue actions

        Cyclic dependency in sqlx 0.5.9 and `json` feature · Issue #1521 · launchbadge/sqlx