tree-sitter/lib
Steven Kalt d35efd4608
feat(cli): support building WASM via podman
Previously, `tree-sitter build-wasm` had the ability to build WASM
by using docker to pull in an image with a complete emscripten toolchain.
This commit adds the ability to use podman to do the same thing.

Using podman requires two notable changes:
1. Using the fully-qualified image name. Docker defaults to prepending
    `docker.io` to the image name, but podman does not.
2. Podman will mount the `/src/` volume as belonging to root unless
  `--userns=keep-id` is passed. I think podman's different
  volume-ownership is related to podman's daemonless execution and
  `--uidmap` functionality, but I'm not 100% sure.

To test, I ran
```sh
script/fetch-fixtures
script/generate-fixtures
script/generate-fixtures-wasm # <- the important one!
```

which worked as well as the docker version.
2024-01-29 00:50:32 -05:00
..
binding_rust fix documentation typos 2024-01-25 20:33:15 -05:00
binding_web feat(cli): support building WASM via podman 2024-01-29 00:50:32 -05:00
include/tree_sitter Revert "Alt #2454" 2023-11-29 11:20:05 +02:00
src Grow memory dynamically as-needed when loading wasm language modules 2023-12-03 12:12:47 -08:00
.ccls rust: Change QueryCursor::captures to expose the full match 2019-10-03 12:45:58 -07:00
Cargo.toml Use upstream wasmtime 2023-10-27 12:43:16 +01:00
compile_flags.txt Restucture wasm module, return a normal TSLanguage from load_language 2022-11-15 17:14:33 -08:00
README.md docs: update badges; fix markdown lint complains 2023-04-16 23:39:08 +03:00

Subdirectories

  • src - C source code for the Tree-sitter library
  • include - C headers for the Tree-sitter library
  • binding_rust - Rust bindings to the Tree-sitter library
  • binding_web - JavaScript bindings to the Tree-sitter library, using WebAssembly