nannou-org / nannou

A Creative Coding Framework for Rust.
https://nannou.cc/
6.04k stars 305 forks source link

Error on updating #982

Open edap opened 1 week ago

edap commented 1 week ago

If I run cargo update in a project that is part of a workspace, I receive the following error:

cargo update
    Updating git repository `https://github.com/nannou-org/nannou`
    Updating crates.io index
    Updating git repository `https://github.com/nannou-org/nannou`
    Updating git repository `https://github.com/edap/nannou_raycast`
    Updating git repository `https://github.com/edap/nannou_raycast`
error: failed to select a version for `web-sys`.
    ... required by package `wgpu v0.11.0`
    ... which satisfies dependency `wgpu_upstream = "^0.11"` of package `nannou v0.18.1`
    ... which satisfies dependency `nannou = "^0.18.1"` of package `raycastcurves v0.1.0 (/home/dapx/Sources/rust/GRAPHICS/nannou-sketches/raycastcurves)`
versions that meet the requirements `^0.3.53` are: 0.3.72, 0.3.70, 0.3.69, 0.3.68, 0.3.67, 0.3.66, 0.3.65, 0.3.64, 0.3.63, 0.3.62, 0.3.61, 0.3.60, 0.3.59, 0.3.58, 0.3.57, 0.3.56, 0.3.55, 0.3.54, 0.3.53

the package `wgpu` depends on `web-sys`, with features: `GpuBufferUsage` but `web-sys` does not have these features.

all possible versions conflict with previously selected packages.

  previously selected package `web-sys v0.3.64`
    ... which satisfies dependency `web-sys = "^0.3.53"` of package `wgpu v0.11.0`
    ... which satisfies dependency `wgpu_upstream = "^0.11"` of package `nannou v0.18.1`
    ... which satisfies dependency `nannou = "^0.18.1"` of package `raycastcurves v0.1.0 (/home/dapx/Sources/rust/GRAPHICS/nannou-sketches/raycastcurves)`

failed to select a version for `web-sys` which could resolve this conflict