tree-sitter/lib
James McCoy 889015f03b
build(rust): use $CARGO_PKG_RUST_VERSION when generating bindings (#4512)
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.
2025-06-13 11:11:22 -07:00
..
binding_rust build(rust): use $CARGO_PKG_RUST_VERSION when generating bindings (#4512) 2025-06-13 11:11:22 -07:00
binding_web build(deps): bump vite from 6.3.2 to 6.3.4 in /lib/binding_web 2025-05-01 09:18:47 +02:00
include/tree_sitter fix(lib): remove duplicate TSLanguageMetadata typedef (#4268) 2025-03-06 14:14:25 -08:00
src fix(query)!: assert that predicates end in ! or ? 2025-06-06 10:34:00 +02:00
.ccls rust: Change QueryCursor::captures to expose the full match 2019-10-03 12:45:58 -07:00
Cargo.toml build(deps): bump the cargo group with 8 updates 2025-06-10 09:10:17 +02:00
CMakeLists.txt fix(build): pkgconfig and use of GNUInstallDirs (#4319) 2025-05-31 11:45:35 +02:00
README.md docs: update badges; fix markdown lint complains 2023-04-16 23:39:08 +03:00
tree-sitter.pc.in build(lib): build using cmake 2024-09-07 18:38:05 -04: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