Works pretty well in a bunch of browsers, but note the required security headers.
You can either:
- Use it online: https://playground.zigtools.org/
- Run it locally:
npm install
npm run serve
Enjoy!
For the time being, the following artifacts have been commited to source control:
src/zls.wasm
- A build of ZLS (ReleaseSmall, wasm32-wasi, VERSION_TBA)src/zig.wasm
- A build of Zig (ReleaseSmall, wasm32-wasi, 0.14.0 with./zig.patch
applied)src/zig.tar.gz
- The source code of Zig. Only thelib/std
subdirectory is needed.
The ./compile.sh
script can be used to create these artifacts:
./compile zls
./compile zig
./compile zig_tarball
Compiling Zig and ZLS may require different Zig compiler versions.
- Stop using
SharedArrayBuffer
s (they're awesome but a nightmare to deploy)