Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build wasm-gpu - error[E0521] #2

Open
npapoutsakis opened this issue Dec 9, 2024 · 0 comments
Open

Can't build wasm-gpu - error[E0521] #2

npapoutsakis opened this issue Dec 9, 2024 · 0 comments

Comments

@npapoutsakis
Copy link

I m trying to add wasm-gpu as a dependency to my project but i keep getting an error while executing cargo build. The error i was getting at first was:

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/papou/.cargo/git/checkouts/wasm-gpu-509e4e8d03a81df3/aa92c2b/naga-ext/src/lib.rs:1:1
  |
1 | #![feature(never_type)]

Then i tried cargo +nightly build but then i was getting a ton of errors referring to basic Rust syntax errors like this one:

error[E0521]: borrowed data escapes outside of closure
   --> /home/papou/.cargo/git/checkouts/wasm-gpu-509e4e8d03a81df3/aa92c2b/wasm-gpu-transpiler/src/active_function/active_block.rs:679:29
    |
587 |         &mut self,
    |         --------- `self` declared here, outside of the closure body
...
677 |                         .otherwise(|ctx| {
    |                                     --- `ctx` is a reference that is only valid in the closure body
678 |                             // If we aren't branching, continue with the remainder of the body we're generating.
679 |                             self.ctx = ctx;
    |                             ^^^^^^^^^^^^^^ `ctx` escapes the closure body here

And i m stuck, is there anyone who did it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant