Problem: `fs::rename` fails if the parser directory and the Tree-sitter library directory are on different file systems. Solution: Write the library file directly to the final directory. |
||
|---|---|---|
| .. | ||
| src | ||
| build.rs | ||
| Cargo.toml | ||
| emscripten-version | ||
| LICENSE | ||
| README.md | ||
Tree-sitter Loader
The tree-sitter command-line program will dynamically find and build grammars
at runtime, if you have cloned the grammars' repositories to your local
filesystem. This helper crate implements that logic, so that you can use it in
your own program analysis tools, as well.