-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
non-parallel mode broken on master #214
Comments
Ah, I see. Unfortunately without this change it was failing to compile (i.e. it was already broken). Looks like I'll need to add a WASM target to the CI as well to catch issues like this. |
Hmm, do you know what exactly was broken? It worked for me after the last PR (#208) and it even powers PNG compression on https://squoosh.app since 2 days ago as mentioned on #203. (Btw, I published a write up about this yesterday in case you're curious: https://rreverser.com/bringing-oxipng-to-squoosh/.) Maybe something else changed in between within the last week? |
I haven't determined what caused this yet, but if I revert 4ef9208, I get these errors:
I did attempt to resolve it by leaving the feature-dependent code in place and propagating |
So the issue is that in #194 I've added I just need to add that |
We do have that now, although it doesn't catch the lack of |
Yeah that one is trickier to catch. Rust includes the API regardless, but throws a runtime error, so the only way to catch it is by actually running tests (e.g. by compiling to |
It was accidentally removed as part of shssoichiro#208. Fixes shssoichiro#214.
Done: #216 |
Looks like 4ef9208 landed yesterday and removes the non-parallel mode added in #194.
These conditional compilation attributes and a separate synchronous code are important for environments like WebAssembly (which is what they were added for in the first place), where
thread::spawn
is not available and errors out at runtime.After this change, it's invoked unconditionally again.
The text was updated successfully, but these errors were encountered: