mrk-its / bevy_webgl2

WebGL2 renderer plugin for Bevy game engine
MIT License
172 stars 46 forks source link

Conflict with last bevy #59

Open devinterx opened 1 year ago

devinterx commented 1 year ago
PS Z:\Projects\rust_projects\wasm-client\client> cargo build
    Updating crates.io index
error: failed to select a version for `wasm-bindgen`.
    ... required by package `bevy_webgl2 v0.5.0`
    ... which satisfies dependency `bevy_webgl2 = "^0.5"` of package `wasm-client v0.1.0 (Z:\Projects\rust_projects\wasm-client\client)`
versions that meet the requirements `=0.2.69` are: 0.2.69

all possible versions conflict with previously selected packages.

  previously selected package `wasm-bindgen v0.2.83`
    ... which satisfies dependency `wasm-bindgen = "^0.2.83"` of package `js-sys v0.3.60`
    ... which satisfies dependency `js-sys = "^0.3.60"` of package `wasm-bindgen-futures v0.4.33`
    ... which satisfies dependency `wasm-bindgen-futures = "^0.4.33"` of package `wgpu v0.14.0`
    ... which satisfies dependency `wgpu = "^0.14.0"` of package `bevy_render v0.9.0`
    ... which satisfies dependency `bevy_render = "^0.9.0"` of package `bevy_core_pipeline v0.9.0`
    ... which satisfies dependency `bevy_core_pipeline = "^0.9.0"` of package `bevy_gltf v0.9.0`
    ... which satisfies dependency `bevy_gltf = "^0.9.0"` of package `bevy_internal v0.9.0`
    ... which satisfies dependency `bevy_internal = "^0.9.0"` of package `bevy v0.9.0`
    ... which satisfies dependency `bevy = "^0.9"` of package `bevy-web-resizer v4.0.0`
    ... which satisfies dependency `bevy-web-resizer = "^4.0"` of package `wasm-client v0.1.0 (Z:\Projects\rust_projects\wasm-client\client)`

failed to select a version for `wasm-bindgen` which could resolve this conflict
PS Z:\Projects\rust_projects\wasm-client\client> cargo build
    Updating crates.io index
error: failed to select a version for `wasm-bindgen`.
    ... required by package `bevy_webgl2 v0.5.0`
    ... which satisfies dependency `bevy_webgl2 = "^0.5"` of package `wasm-client v0.1.0 (Z:\Projects\rust_projects\wasm-client\client)`
versions that meet the requirements `=0.2.69` are: 0.2.69

all possible versions conflict with previously selected packages.

  previously selected package `wasm-bindgen v0.2.83`
    ... which satisfies dependency `wasm-bindgen = "^0.2.83"` of package `js-sys v0.3.60`
    ... which satisfies dependency `js-sys = "^0.3.60"` of package `wasm-bindgen-futures v0.4.33`
    ... which satisfies dependency `wasm-bindgen-futures = "^0.4.33"` of package `wgpu v0.14.0`
    ... which satisfies dependency `wgpu = "^0.14.0"` of package `bevy_render v0.9.0`
    ... which satisfies dependency `bevy_render = "^0.9.0"` of package `bevy_core_pipeline v0.9.0`
    ... which satisfies dependency `bevy_core_pipeline = "^0.9.0"` of package `bevy_gltf v0.9.0`
    ... which satisfies dependency `bevy_gltf = "^0.9.0"` of package `bevy_internal v0.9.0`
    ... which satisfies dependency `bevy_internal = "^0.9.0"` of package `bevy v0.9.0`
    ... which satisfies dependency `bevy = "^0.9"` of package `wasm-client v0.1.0 (Z:\Projects\rust_projects\wasm-client\client)`

failed to select a version for `wasm-bindgen` which could resolve this conflict
mockersf commented 1 year ago

Bevy works directly in wasm/webgl2 since 0.6 and this crate is not needed anymore for it. You can check out https://github.com/bevyengine/bevy/tree/latest/examples#wasm