Bumps the cargo group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [cc](https://github.com/rust-lang/cc-rs) | `1.2.16` | `1.2.17` | | [clap_complete](https://github.com/clap-rs/clap) | `4.5.46` | `4.5.47` | | [git2](https://github.com/rust-lang/git2-rs) | `0.20.0` | `0.20.1` | | [log](https://github.com/rust-lang/log) | `0.4.26` | `0.4.27` | | [once_cell](https://github.com/matklad/once_cell) | `1.21.0` | `1.21.1` | | [tempfile](https://github.com/Stebalien/tempfile) | `3.18.0` | `3.19.1` | | [widestring](https://github.com/starkat99/widestring-rs) | `1.1.0` | `1.2.0` | | [ureq](https://github.com/algesten/ureq) | `3.0.8` | `3.0.10` | Updates `cc` from 1.2.16 to 1.2.17 - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.16...cc-v1.2.17) Updates `clap_complete` from 4.5.46 to 4.5.47 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.46...clap_complete-v4.5.47) Updates `git2` from 0.20.0 to 0.20.1 - [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/git2-rs/compare/git2-0.20.0...git2-0.20.1) Updates `log` from 0.4.26 to 0.4.27 - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/log/compare/0.4.26...0.4.27) Updates `once_cell` from 1.21.0 to 1.21.1 - [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md) - [Commits](https://github.com/matklad/once_cell/compare/v1.21.0...v1.21.1) Updates `tempfile` from 3.18.0 to 3.19.1 - [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md) - [Commits](https://github.com/Stebalien/tempfile/compare/v3.18.0...v3.19.1) Updates `widestring` from 1.1.0 to 1.2.0 - [Release notes](https://github.com/starkat99/widestring-rs/releases) - [Changelog](https://github.com/VoidStarKat/widestring-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/starkat99/widestring-rs/compare/v1.1.0...v1.2.0) Updates `ureq` from 3.0.8 to 3.0.10 - [Changelog](https://github.com/algesten/ureq/blob/main/CHANGELOG.md) - [Commits](https://github.com/algesten/ureq/compare/3.0.8...3.0.10) --- updated-dependencies: - dependency-name: cc dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo - dependency-name: clap_complete dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo - dependency-name: git2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo - dependency-name: log dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo - dependency-name: once_cell dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo - dependency-name: tempfile dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo - dependency-name: widestring dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo - dependency-name: ureq dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|---|---|---|
| .. | ||
| benches | ||
| config | ||
| eslint | ||
| generate | ||
| loader | ||
| npm | ||
| src | ||
| build.rs | ||
| Cargo.toml | ||
| README.md | ||
Tree-sitter CLI
The Tree-sitter CLI allows you to develop, test, and use Tree-sitter grammars from the command line. It works on MacOS, Linux, and Windows.
Installation
You can install the tree-sitter-cli with cargo:
cargo install --locked tree-sitter-cli
or with npm:
npm install tree-sitter-cli
You can also download a pre-built binary for your platform from the releases page.
Dependencies
The tree-sitter binary itself has no dependencies, but specific commands have dependencies that must be present at runtime:
- To generate a parser from a grammar, you must have
nodeon your PATH. - To run and test parsers, you must have a C and C++ compiler on your system.
Commands
-
generate- Thetree-sitter generatecommand will generate a Tree-sitter parser based on the grammar in the current working directory. See the documentation for more information. -
test- Thetree-sitter testcommand will run the unit tests for the Tree-sitter parser in the current working directory. See the documentation for more information. -
parse- Thetree-sitter parsecommand will parse a file (or list of files) using Tree-sitter parsers.