bat
bat copied to clipboard
WASI / WASM support
are there any plans to support WASI / WASM? This would be awesome for portability and also the ability to run inside the browser in online playgrounds / IDEs
Note that there are already wasm "versions" of syntect, the syntax highlighting library that bat
uses:
- https://github.com/alexpeattie/syntect-wasm-demo
- https://github.com/Menci/syntect-js
What benefits would compiling bat
to WASM/WASI bring over that?
ability to portably use the bat binary across across different platforms, using for example https://wasmtime.dev/.
What platforms do you have in mind that are not yet supported by fast native binaries?