Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
support `--target-arch wasm32` #1094
Add wasm32 support to the build-obj, build-exe and build-lib commands
To export a function:
To import a function:
I thought about that. It'd be easy if we can assume (or check for) the presence of node since it supports wasm out of the box.
The alternative is to write a skeleton loader+vm in zig but even the simplest wasm file is still fairly complex so it'd be a pretty big undertaking. That PR would be many times the size of this PR.
(I might still do that one day just for the fun of it, though.)