-
Notifications
You must be signed in to change notification settings - Fork 122
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
Crate does not compile to WASM targets like wasm32-wasi #73
Comments
CPerezz
added a commit
to CPerezz/circom-compat
that referenced
this issue
Aug 22, 2024
After forcing `wasmer-wasix` to use the `js` feature when the `circom-compat/js` feature is enabled. As well as forcing `wasmer/js` and otherwise, `wasmer/default`. The crate can now successfully compile to wasm. Resolves: arkworks-rs#73
CPerezz
added a commit
to CPerezz/circom-compat
that referenced
this issue
Aug 22, 2024
After forcing `wasmer-wasix` to use the `js` feature when the `circom-compat/js` feature is enabled. As well as forcing `wasmer/js` and otherwise, `wasmer/default`. The crate can now successfully compile to wasm. Resolves: arkworks-rs#73
mmagician
pushed a commit
that referenced
this issue
Aug 23, 2024
After forcing `wasmer-wasix` to use the `js` feature when the `circom-compat/js` feature is enabled. As well as forcing `wasmer/js` and otherwise, `wasmer/default`. The crate can now successfully compile to wasm. Resolves: #73
Is this closed by #74? |
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure if it's only me. But none of
master
norrelease-0.5
branches does actually compile to wasm (meaning a wasm-target ofc).In particular, the specific issue happens when compiling
wasm-wasix
dependency. I thought it had to do with the fact that is actually using the default features.All this only would work with target
wasm32-wasi
. The rest are directly not supported due to some of the dependencies not supporting any other wasm-target.I got an error when compiling using:
cargo build --no-default-features --features wasm --target wasm32-wasi
This is a big deal specially for projects that depend on this crate to generate their witness inside WASM in the browser.
The text was updated successfully, but these errors were encountered: