Skip to content
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

Conflicting dependencies #64

Open
Benji377 opened this issue Jun 14, 2024 · 2 comments
Open

Conflicting dependencies #64

Benji377 opened this issue Jun 14, 2024 · 2 comments

Comments

@Benji377
Copy link

When using your library in combination with other crates, like the zip crate for example, both depend on the time crate, but with different versions.
This creates a dependency conflict in my project:

error: failed to select a version for `time`.                                                                                                                                      
    ... required by package `zip v2.0.0`
    ... which satisfies dependency `zip = "^2.0.0"` of package `raspirus v1.2.0 (C:\...\Raspirus\src-tauri)`
versions that meet the requirements `^0.3.36` are: 0.3.36

all possible versions conflict with previously selected packages.

  previously selected package `time v0.3.31`
    ... which satisfies dependency `time = "=0.3.31"` of package `leptonic v0.5.0`
    ... which satisfies dependency `leptonic = "^0.5.0"` of package `raspirus-ui v0.1.0 (C:\...\Raspirus)`

failed to select a version for `time` which could resolve this conflict

You can reproduce this issue by modifying the tauri-template provided here and add the zip crate to the src-tauri module.

The issue is also documented on the cargo and a potential solution could be to use a tool like cargo-semver-check to find these issues before releasing the library.

@TheToddmeister
Copy link

TheToddmeister commented Jul 14, 2024

This issue is also tripping me up with a very simialr context:
I fixed it by bumping time to 0.3.36

@danielclough
Copy link

I can not bump time to 0.3.36 because

error: failed to select a version for `time`.
    ... required by package `leptonic v0.5.0`
    ... which satisfies dependency `leptonic = "^0.5"` of package `frontend v0.1.0 (/Users/daniel/git/fireside-chat/frontend)`
versions that meet the requirements `=0.3.31` are: 0.3.31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants