I was trying to build a small Wasm module, but I keep running to the unresolved import
error for building wasm file. If I call my logic function from main.rs
then everything works fine.
Compiling pin-project v1.0.12
error[E0432]: unresolved import `crate::exit_sequentializer`
--> C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\static_init-1.0.3\src\lazy.rs:17:13
|
17 | use crate::{exit_sequentializer::ExitSequentializer, lazy_sequentializer::SyncSequentializer};
| ^^^^^^^^^^^^^^^^^^^ could not find `exit_sequentializer` in the crate root
Compiling wasm-bindgen-macro v0.2.83
For more information about this error, try `rustc --explain E0432`.
error: could not compile `static_init` due to previous error
warning: build failed, waiting for other jobs to finish...
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit code: 101
full command: "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"
Is this suppose to be a problem with the crate static_init?
I used it for saving some config.
What can be done about this issue?
Thank you