An open API service indexing awesome lists of open source software.

https://github.com/agentcooper/tree-sitter-wasi-web

Example setup for compiling Rust code that depends on an unmodified tree-sitter crate to the web via WebAssembly (and WASI).
https://github.com/agentcooper/tree-sitter-wasi-web

tree-sitter wasi wasm web

Last synced: 8 months ago
JSON representation

Example setup for compiling Rust code that depends on an unmodified tree-sitter crate to the web via WebAssembly (and WASI).

Awesome Lists containing this project

README

          

Example setup for compiling Rust code that depends on an unmodified [tree-sitter](https://crates.io/crates/tree-sitter) crate to the web via WebAssembly (and WASI).

https://agentcooper.github.io/tree-sitter-wasi-web/

# Install

Install [WASI SDK](https://github.com/WebAssembly/wasi-sdk) to `/opt/wasi-sdk`.

# Run (web)

Run `make web-start` to start a local dev server.

Or create `web/dist` directory ready for use with any static web server:

```bash
make web-build
python3 -m http.server -d web/dist
```

# Run (local)

```bash
cargo run
```