Open Mohsen7s opened 2 years ago
Acording to following code https://github.com/koute/stdweb/blob/master/src/webcore/ffi/mod.rs
fslock has to implement target_arch = "wasm32", target_os = "unknown" mod for wasm like stdweb does.
Otherwise it break the ability of rust to get compiled on wasm .
The issue also reported on rust forum https://users.rust-lang.org/t/compile-bug-unresolved-import-crate-sys/70719/2
I'm sorry for the delay. I am not very used to WASM API, how would one open files or lock files?
Acording to following code https://github.com/koute/stdweb/blob/master/src/webcore/ffi/mod.rs
fslock has to implement target_arch = "wasm32", target_os = "unknown" mod for wasm like stdweb does.
Otherwise it break the ability of rust to get compiled on wasm .
The issue also reported on rust forum https://users.rust-lang.org/t/compile-bug-unresolved-import-crate-sys/70719/2