Dependency conflict when using Bevy

⚓ Rust    📅 2025-11-21    👤 surdeus    👁️ 2      

surdeus

Dependency Conflict

I'm using Bevy, and some other dependencies for a game I am making. I do not know a ton about Rust and Cargo, so I could use some help. I am getting the following error whenever I try to build:

    Updating crates.io index
error: failed to select a version for `uuid`.
    ... required by package `bevy_asset v0.16.1`
    ... which satisfies dependency `bevy_asset = "^0.16.0"` of package `bevy-inspector-egui v0.31.0`      
    ... which satisfies dependency `bevy-inspector-egui = "^0.31.0"` of package `bevy_extended_ui v0.2.2` 
    ... which satisfies dependency `bevy_extended_ui = "^0.2.2"` of package `egg_smasher2 v0.1.0 (C:\Users\samsj\rust\graphical_or_projects\egg_smasher2)`
versions that meet the requirements `^1.13.1` are: 1.18.1, 1.18.0, 1.17.0, 1.16.0, 1.15.1, 1.15.0, 1.14.0, 1.13.2, 1.13.1

all possible versions conflict with previously selected packages.

  previously selected package `uuid v1.12.0`
    ... which satisfies dependency `uuid = "=1.12"` of package `bevy_asset v0.15.3`
    ... which satisfies dependency `bevy_asset = "^0.15.3"` of package `bevy_internal v0.15.3`
    ... which satisfies dependency `bevy_internal = "^0.15.3"` of package `bevy v0.15.3`
    ... which satisfies dependency `bevy = "^0.15.3"` of package `egg_smasher2 v0.1.0 (C:\Users\samsj\rust\graphical_or_projects\egg_smasher2)`

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

This is what my toml looks like:

[package]
name = "egg_smasher2"
version = "0.1.0"
edition = "2021"

[dependencies]
bevy = {version = "0.15.3", features = ["mp3"] }
bevy_extended_ui = "0.2.2"
num_enum = "0.7.3"
rand = "0.9.1"

My program was working a while ago (about 3 months ago), but now that I have come back to it, I am getting the previous error.

2 posts - 2 participants

Read full topic

🏷️ Rust_feed