An incremental parsing system for programming tools https://tree-sitter.github.io
Find a file
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
.cargo feat: add xtasks to assist with bumping crates 2024-02-25 13:40:03 -05:00
.github Reorganize rust crates into a flat crates directory, simplify some CI steps (#4496) 2025-06-06 14:25:37 -07:00
.zed Add zed config file (enable all cargo features for rust-analyzer) 2025-04-23 16:32:21 -07:00
crates fix(loader): fix no-default-features build (#4505) 2025-06-11 09:00:54 -07:00
docs fix(bindings): update swift & node dependencies (#4432) 2025-06-07 11:41:07 -07:00
lib build(rust): use $CARGO_PKG_RUST_VERSION when generating bindings (#4512) 2025-06-13 11:11:22 -07:00
test/fixtures Fix crash w/ goto_previous_sibling when parent node has leading extra child (#4472) 2025-05-27 16:56:33 -07:00
.dockerignore Add a simple dockerfile for testing 2024-03-18 12:35:10 -07:00
.editorconfig build: add editorconfig 2024-02-11 13:03:58 +01:00
.gitattributes Reorganize rust crates into a flat crates directory, simplify some CI steps (#4496) 2025-06-06 14:25:37 -07:00
.gitignore feat: Windows support using MinGW-w64 (#4201) 2025-02-12 16:31:06 -08:00
build.zig build(zig): use build root instead of cwd (#3944) 2024-11-15 12:47:01 +02:00
build.zig.zon build.zig.zon: Fix package hashes for Zig 0.14 2025-03-21 17:33:38 +01:00
Cargo.lock build(deps): bump the cargo group with 8 updates 2025-06-10 09:10:17 +02:00
Cargo.toml build(deps): bump the cargo group with 8 updates 2025-06-10 09:10:17 +02:00
CONTRIBUTING.md docs: improve docs for contributing to docs 2025-01-10 22:57:54 -05:00
Dockerfile Add a simple dockerfile for testing 2024-03-18 12:35:10 -07:00
FUNDING.json chore: add FUNDING.json 2023-11-08 00:08:07 -05:00
LICENSE docs(license): update year 2024-03-16 01:15:22 -04:00
Makefile Reorganize rust crates into a flat crates directory, simplify some CI steps (#4496) 2025-06-06 14:25:37 -07:00
Package.swift build(swift): include all source files 2025-01-06 01:13:04 -05:00
README.md docs: add discord and matrix badges 2024-03-10 11:28:14 -04:00

tree-sitter

DOI discord matrix

Tree-sitter is a parser generator tool and an incremental parsing library. It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited. Tree-sitter aims to be:

  • General enough to parse any programming language
  • Fast enough to parse on every keystroke in a text editor
  • Robust enough to provide useful results even in the presence of syntax errors
  • Dependency-free so that the runtime library (which is written in pure C) can be embedded in any application