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

Compile Error: error[E0433] and error[E0425] #1942

Open
fu4d opened this issue Oct 2, 2023 · 0 comments
Open

Compile Error: error[E0433] and error[E0425] #1942

fu4d opened this issue Oct 2, 2023 · 0 comments

Comments

@fu4d
Copy link

fu4d commented Oct 2, 2023

Hi everyone, I'm very newbies in Rust. I tried to follow this installation steps but always got these errors (error[E0433] and error[E0425])
This is my environment

  • Ubuntu 20.04.6 LTS (WSL on windows 11)
  • cargo 1.72.1
  • version @master branch

I already run cargo clean, cargo update and make all instructions until Compiling yew-router v0.16.0 step I got these errors

`error[E0433]: failed to resolve: unresolved import
--> /home/fu4d/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stdweb-0.4.20/src/webcore/ffi/wasm_bindgen.rs:67:32
|
67 | alloc: &Closure< Fn( usize ) -> *mut u8 >,
| ^ unresolved import

error[E0425]: cannot find function wasm_bindgen_initialize in this scope
--> /home/fu4d/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stdweb-0.4.20/src/webcore/ffi/wasm_bindgen.rs:77:22
|
77 | let module = wasm_bindgen_initialize( memory, table, &alloc, &free );
| ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

Some errors have detailed explanations: E0425, E0433.
For more information about an error, try rustc --explain E0425.
error: could not compile stdweb (lib) due to 2 previous errors; 4712 warnings emitted
warning: build failed, waiting for other jobs to finish...
Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute cargo build: exited with exit status: 101
full command: cd "/mnt/d/project/rew2/webapp.rs/frontend" && "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"
make: *** [Makefile:49: build-frontend] Error 1`

Could someone give me suggestion what I have to do to resolve this issue? thank you

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