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

Description

@lordnoriyuki

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions