lowenware / dotrix

A 3D engine with ECS and Vulkan renderer for Rust developers
https://dotrix.rs
MIT License
290 stars 11 forks source link

`cargo run editor` failed #177

Closed dmitrykolesnikovich closed 1 year ago

dmitrykolesnikovich commented 1 year ago
D:\workspace\dotrix>cargo run editor
   Compiling wgpu-core v0.9.0
error[E0597]: `desc_set` does not live long enough
    --> C:\Users\dmitrykolesnikovich\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.9.0\src\device\mod.rs:1801:26
     |
1801 |                     set: desc_set.raw_mut(),
     |                          ^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
...
1822 |     }
     |     -
     |     |
     |     `desc_set` dropped here while still borrowed
     |     borrow might be used here, when `write_map` is dropped and runs the `Drop` code for type `BTreeMap`
     |
     = note: values in a scope are dropped in the opposite order they are defined

For more information about this error, try `rustc --explain E0597`.
error: could not compile `wgpu-core` due to previous error
Lowentwickler commented 1 year ago

According to the error text, the problem is with wgpu compiling, not dotrix. Try run rustup update and rebuild.

dmitrykolesnikovich commented 1 year ago

that does not help, here is my Cargo.lock line 2702 to point wgpu version

[[package]]
name = "wgpu"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd247f8b26fd3d42ef2f320d378025cd6e84d782ef749fab45cc3b981fbe3275"
dependencies = [
 "arrayvec",
 "js-sys",
 "log",
 "naga",
 "parking_lot",
 "raw-window-handle",
 "serde",
 "smallvec",
 "wasm-bindgen",
 "wasm-bindgen-futures",
 "web-sys",
 "wgpu-core",
 "wgpu-types",
]
Lowentwickler commented 1 year ago

What branch are you building dotrix of?

dmitrykolesnikovich commented 1 year ago

I try to run editor, so I chose feat/editor branch to run.

Lowentwickler commented 1 year ago

I see. That branch is outdated (could be even broken) and its purpose to keep the code for some future use.