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

Having trouble using up-to-date miniquad as macroquad dependency, "failed to select a version" #445

Open
cpowell opened this issue Jun 10, 2024 · 0 comments

Comments

@cpowell
Copy link

cpowell commented Jun 10, 2024

Hi. I'm not directly using miniquad; it's being required by egui-miniquad which itself is a dependency of egui-macroquad. I'm trying to employ your latest macroquod 0.4.8 release and having trouble with the following output:

> cargo build
    Updating git repository `https://github.com/optozorax/egui-macroquad`
    Updating crates.io index
    Updating git repository `https://github.com/caspark/egui-miniquad.git`
error: failed to select a version for `miniquad`.
    ... required by package `egui-miniquad v0.14.0 (https://github.com/not-fl3/egui-miniquad#5df57233)`
    ... which satisfies git dependency `egui-miniquad` of package `egui-macroquad v0.16.0 (https://github.com/optozorax/egui-macroquad#dfbdb967)`
    ... which satisfies git dependency `egui-macroquad` of package `ssi_homage v0.1.0 (C:\Code\_rust\ssi_homage)`
versions that meet the requirements `=0.4.0` are: 0.4.0

all possible versions conflict with previously selected packages.

  previously selected package `miniquad v0.4.2`
    ... which satisfies dependency `miniquad = "=0.4.2"` (locked to 0.4.2) of package `macroquad v0.4.8`
    ... which satisfies dependency `macroquad = "^0.4.8"` (locked to 0.4.8) of package `ssi_homage v0.1.0 (C:\Code\_rust\ssi_homage)`

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

The closest I've been able to get is the following cargo.toml:

macroquad = { version="0.4.8", default-features=false }
egui = "0.27.2"
egui-macroquad = { git = "https://github.com/optozorax/egui-macroquad"}

[patch.'https://github.com/caspark/egui-miniquad.git']
egui-miniquad = { git = "https://github.com/not-fl3/egui-miniquad"}

...but that hasn't quite cracked the nut yet. I am wondering, do you have a recommended cargo.toml to satisfy the dependencies and employ egui and macroquad ?

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

1 participant