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).
- Host: GitHub
- URL: https://github.com/agentcooper/tree-sitter-wasi-web
- Owner: agentcooper
- Created: 2024-08-25T14:59:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T19:52:07.000Z (over 1 year ago)
- Last Synced: 2025-01-30T21:04:17.272Z (over 1 year ago)
- Topics: tree-sitter, wasi, wasm, web
- Language: Rust
- Homepage: https://agentcooper.github.io/tree-sitter-wasi-web/
- Size: 19.1 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```