tree-sitter-wasm-build-tool
A crate to easily allow tree-sitter parsers to compile to Rust's
wasm32-unknown-unknown
target.
Currently, this only works with parsers that do not make use of an external C++ scanner.
It is meant to be used in build scripts, typically only if some wasm or c2rust feature is enabled.
For example:
let src_dir = new;
let mut c_config = new;
c_config.include;
c_config
.flag
.flag
.flag;
let parser_path = src_dir.join;
c_config.file;
add_wasm_headers.unwrap;
c_config.compile;
println!;
The only public function is [add_wasm_headers
]. See its documentation for some
more information.