$ tree-sitter-rust

v0.24.1MAJOR UPDATE

Rust grammar for tree-sitter

Downloads: 6.8M
Recent: 3.0M
Versions: 15
Updated: March 19, 2026

Latest Update Summary

Crate

Name: tree-sitter-rust New version: 0.24.1 Release date: 2026-03-19T17:18:03.427110Z

Crate readme

Short description Rust grammar for tree-sitter.

Long description tree-sitter-rust provides a Rust grammar for the tree-sitter parsing system. It is designed to parse Rust files quickly, taking about two to three times longer than rustc's parser when initially parsing a file, but it is capable of updating its syntax tree in less than a millisecond after file edits, thanks to its incremental parsing system.

Features • Speed • Incremental parsing system

Code Examples Basic usage

 $ tree-sitter parse examples/ast.rs --quiet --time

Linkshttps://crates.io/crates/tree-sitter-rusthttps://doc.rust-lang.org/reference/https://doc.rust-lang.org/stable/book/appendix-01-keywords.htmlhttps://doc.rust-lang.org/stable/book/appendix-02-operators.html

https://api.github.com/repos/tree-sitter/tree-sitter-rust/releases/299070008

Release info

Release version:

Release description

Code Examples

Patch update: 0.24.0 → 0.24.1

$ DOWNLOADS TREND

5.5M6.8M

$ VERSION HISTORY

v0.24.1March 19, 2026
v0.24.0April 1, 2025

$ LINKS

$ INSTALL

cargo add tree-sitter-rust

Or add to Cargo.toml: tree-sitter-rust = "0.24.1"