forked from Crockan/MercuryToolbox
Vendored Tree-sitter
This directory is intentionally tracked and wired through the workspace
[patch.crates-io] entry for tree-sitter.
Why This Exists
Mercury Toolbox uses Tree-sitter for code-reading tools, and the local vendor copy keeps the Rust binding and native C source available for reproducible Windows builds while the workspace pins the exact dependency surface.
Maintainer Rules
- Do not edit generated or upstream Tree-sitter source by hand unless the patch is intentionally local and documented in this file.
- Keep
Cargo.toml.origbeside the activeCargo.tomlwhen updating so the local changes are reviewable. - After re-vendoring, verify that the root
Cargo.tomlstill points[patch.crates-io].tree-sitteratvendor/tree-sitter. - Run the smallest code-reading gate that covers the change first, then run the broader Jade gate before claiming the repository is clean.
Update Sketch
- Replace this directory with the desired upstream
tree-sittercrate contents. - Preserve or refresh
Cargo.toml.orig. - Reapply any local manifest adjustment needed by the workspace.
- Run
cargo check --all-targets --all-featuresor a narrower code-reading package check while iterating. - Run
pwsh -NoProfile -File .\scripts\check-jade.ps1for final repository proof.