brunoczim / fslock

File locking for Rust.
MIT License
40 stars 10 forks source link

fslock does not export to wasm like it does with windows and unix #9

Open Mohsen7s opened 2 years ago

Mohsen7s commented 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

brunoczim commented 2 years ago

I'm sorry for the delay. I am not very used to WASM API, how would one open files or lock files?