-
Notifications
You must be signed in to change notification settings - Fork 186
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
WASM support broken due to incompatible dependencies #472
Comments
Hmm does #462 fix the issue? |
hey! I'm getting this same issue, which is unrelated to my pr. that one was introduced to fix an issue originally mentioned here #448. I think the problem with this one is that, since nix uses sys related functions, it's definitely not no_std – which I think is a wasm requirements – so it can't be compiled. not sure what the fix can be, as I tried writing my own no_std compatible equivalents and it made me want to die. Will look forward to the progress here. |
@myceliaspy no_std isn't required for wasm. Typically, the solution is just making sure code paths that use native-only crates/modules don't get imported. Just based on cursory observations, it looks like |
hmm I guess we could just slap a |
filed https://gitlab.com/IrreducibleOSS/binius/-/issues/5 to track the upstream fix and #483 to unblock wasm for now |
Following instructions at https://jolt.a16zcrypto.com/usage/wasm_support.html, I was unable to compile my project to wasm.
Steps to reproduce
jolt new foo --wasm
)fib(n: 32) -> u128
inguest/src/lib.rs
has#[jolt::provable(wasm)]
jolt build-wasm
Expected result
I expect a wasm bin to be compiled and output to
target/wasm32-unknown-unknown/release
as well as anindex.html
and apkg
dir with some wasm-pack stuff.Actual result
index.html
is created, but wasm compilation fails as it encounters somenix
modules within thetracing-profile
dependency:cargo tree -i tracing profile
reveals the tree:The text was updated successfully, but these errors were encountered: