kornelski / cavif-rs

AVIF image creator in pure Rust
https://lib.rs/cavif
BSD 3-Clause "New" or "Revised" License
570 stars 27 forks source link

improve WASM compatibility #53

Closed rkusa closed 2 years ago

rkusa commented 2 years ago

While trying to use cavif-rs inside of a project that is compiled to WASM (wasm32-wasi to be specific), I encountered two issues. This PR fixes both. I'll add inline-code comments to highlight and explain both issues.

Thanks for making a AVIF image encoder in Rust!

(Some code was just moved, so I'd recommend to hide whitespace changes during review)

kornelski commented 2 years ago

Thank you