async-compression
async-compression copied to clipboard
Bump zstd for WASM support
Hello,
It would be nice, if possible to bump the zstd dependency to 0.11 to be able to use this crate on WASM targets. To be honest I'm not entirely sure this is possible, or whether the bump would be enough. I'll probably try eventually in some point in the future, I'm mostly making this issue to raise awareness
Wanted to bump this! Would greatly appreciate an upgrade to 0.11.1 (not for WASM support, just to keep up to date with zstd and zstd-safe). And an upgrade to zstd-safe to 5.0.1
@Nemo157 any chance this might be possible?
PR #144 should fix this.
Sorry about the delay, I've merged and published #144 finally. I'd like to keep this issue open for adding CI testing on wasm32-wasi
if possible.
Blockers for testing on wasm32-wasi:
- proptest uses forking
- ntest::timeout uses threads
Quickly deleting those dependencies from the tests I was able to successfully run the tests on arch after installing libc-wasi
with:
CFLAGS='-iwithsysroot /usr/share/wasi-sysroot/include' cargo test --target wasm32-wasi --features zstd,all-implementations
It looks like everything except xz/lzma compiles ok, that uses pthread.h
which doesn't exist, it's hopefully possible to disable that by adding some extra build-configuration somewhere.
I'll think about what to do about proptest/ntest and come back to this later.