Registry / utility / tree-sitter-loader

tree-sitter-loader

JSON →
library0.26.8rscratesunverified

Locates, builds, and loads tree-sitter grammars at runtime.

# Cargo.toml [dependencies] tree-sitter-loader = "0.26.8"
INSTALL
IMPORT
SIG · TREE-SITTER-LOADER
T
tree-sitter-loader
utilityrustv0.26.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Loader
✓ use tree_sitter_loader::Loader;

Loads a tree-sitter grammar for the Rust language.

use tree_sitter_loader::Loader; fn main() { let mut loader = Loader::new(); let language = loader.load_language("rust").unwrap(); println!("Loaded grammar: {:?}", language); }
Debug
Known issues
gotchaRequires the tree-sitter grammar to be installed or available in the system.
fix
Ensure the grammar is present (e.g., via `tree-sitter-rust` crate) or use the `load_grammar_from_path` method.
affects: >=0.26.0
Upgrade
Version history
0.26.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
tree-sitter-loader — cargo add tree-sitter-loader · libregistry