Unfortunately wasm-pack does not support compiling C dependency with stdlib. ~~We have to use emcc.~~
We have to use web-tree-sitter
~~
rustup target add wasm32-unknown-emscripten
https://github.com/MolotovCherry/tree-sitter-wasm https://github.com/rustwasm/wasm-pack/issues/741 https://stackoverflow.com/questions/67474533/error-in-compiling-rust-into-webassembly-using-emscripten-on-windows https://github.com/rustwasm/wasm-pack/blob/master/src/command/build.rs ~~