image icon indicating copy to clipboard operation
image copied to clipboard

emscrioten and wasm .. seems to expect rayon+threads

Open dobkeratops opened this issue 2 years ago • 1 comments

has this crate been used in the browser? my project uses the image crate and is being ported to wasm32/emscrioten;

it crashes on startup reporting that threads arent available;

i can get it past that using “default-features = false” but then its not managung to decode textures (as far as i can tell)

Q1 could anyone verify if this should work Q2 could the library default to no threading on the wasm targets

whats the thinking on this

dobkeratops avatar Oct 28 '21 04:10 dobkeratops

duplicate of #1496

You probably need to re-enable some of the features disabled by default-features = false to regain the support for decoding your textures, just don't enable the threading/rayon features.

jbg avatar Oct 28 '21 05:10 jbg