libheif-rs icon indicating copy to clipboard operation
libheif-rs copied to clipboard

unable to compile to wasm32-wasi target

Open storybehind opened this issue 10 months ago • 5 comments

When compiling my project that uses this library as a dependency using command cargo wasi build --release, the below error occurs:

libheif-rs-wasi-compile-err

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?

storybehind avatar Apr 22 '24 14:04 storybehind