Description
Affected crates: quickjs-wasm-sys, quickjs-wasm-rs, javy, javy-apis
The four crates above need access to a WASI SDK to compile some vendored C source code to the wasm32-wasi target. Unfortunately I can't find an Ubuntu package for the WASI SDK. There is a wasi-libc
package but that's not sufficient since Clang also requires an additional runtime archive file to be installed and that archive file is not part of an Ubuntu package.
From https://github.com/WebAssembly/wasi-sdk:
One could also use a standard Clang installation, build a sysroot from the sources mentioned above, and compile with --target=wasm32-wasi --sysroot=/path/to/sysroot. In this scenario, one would also need the libclang_rt.builtins-wasm32.a objects available separately in the release downloads which must be extracted into $CLANG_INSTALL_DIR/$CLANG_VERSION/lib/wasi/.
The compiled WASI SDK is also too large to vendor given cargo's size limits on crates.
I'm not sure how to proceed.