Since cargo 1.63, $CARGO_PKG_RUST_VERSION is set in the build environment to the value of the rust-version Cargo.toml field. This removes the need to manually invoke cargo from build.rs during a build of the tree-sitter crate with the bindgen feature enabled. Removing the cargo invocation also ensures the build doesn't write to the current directory when the target directory has been redirected elsewhere. "cargo metadata" will attempt to update Cargo.lock, which will fail if the source tree is read-only. |
||
|---|---|---|
| .. | ||
| binding_rust | ||
| binding_web | ||
| include/tree_sitter | ||
| src | ||
| .ccls | ||
| Cargo.toml | ||
| CMakeLists.txt | ||
| README.md | ||
| tree-sitter.pc.in | ||
Subdirectories
src- C source code for the Tree-sitter libraryinclude- C headers for the Tree-sitter librarybinding_rust- Rust bindings to the Tree-sitter librarybinding_web- JavaScript bindings to the Tree-sitter library, using WebAssembly