This repository was archived by the owner on Jun 18, 2021. It is now read-only.
This repository was archived by the owner on Jun 18, 2021. It is now read-only.
web-sys dependency strangeness #637
Closed
Description
Updating to latest wgpu-rs I can't get cargo update to complete successfully.
I tried doing cargo new foo
and then simply adding wgpu = { git = "https://github.com/gfx-rs/wgpu-rs" }
to the dependencies section.
Running cargo run
I get:
cargo run
Updating crates.io index
Updating git repository `https://github.com/gfx-rs/wgpu-rs`
Updating git repository `https://github.com/gfx-rs/wgpu`
Updating git repository `https://github.com/zakarumych/gpu-alloc`
Updating git repository `https://github.com/gfx-rs/naga`
error: failed to select a version for `web-sys`.
... required by package `wgpu v0.6.0 (https://github.com/gfx-rs/wgpu-rs#fd1378b8)`
... which is depended on by `foo v0.1.0 (/Users/ln/Downloads/foo)`
versions that meet the requirements `=0.3.45` are: 0.3.45
the package `wgpu` depends on `web-sys`, with features: `GpuMapMode` but `web-sys` does not have these features.
failed to select a version for `web-sys` which could resolve this conflict
I tried removing ~/.cargo/git and ~/.cargo/registry and that didn't help either.
Any ideas?