fubark / cyber

Fast and concurrent scripting.
https://cyberscript.dev
MIT License
1.16k stars 38 forks source link

CLI / wasm #90

Closed mationai closed 2 months ago

mationai commented 3 months ago

How do I compile to wasm? Does cyber CLI have menu? Tried -h, --help, didn't work. The CLI section in doc is very lacking.

thanks

fubark commented 3 months ago

It's cyber help, but I suppose -h and --help should be aliases too. I will also update the CLI docs.

For building wasm, see the build.md. That is for standalone wasm which won't have any interop with web. zig build web-lib will produce the wasm with interop like the playground. In the future it will contain JS promise to Cyber futures and maybe DOM access, so I'd check back in a week or so.

fubark commented 2 months ago

I have added CLI instructions to the docs. Closing, thanks.