libheif-rs
libheif-rs copied to clipboard
unable to compile to wasm32-wasi target
When compiling my project that uses this library as a dependency using command cargo wasi build --release
, the below error occurs:
When looking at the source code in src/utils.rs
, it can compile only to unix and windows target platform. I'm new to rust and my question is why can't the function just return CString::new(path.as_os_str().as_bytes()).unwrap_or_default()
. Can you alter this function to make it work in other target platforms?