tree-sitter-rust
Rust grammar for tree-sitter.
Features
-
Speed — When initially parsing a file,
tree-sitter-rusttakes around two to three times as long as rustc's hand-written parser.$ wc -l examples/ast.rs 2157 examples/ast.rs $ rustc -Z unpretty=ast-tree -Z time-passes examples/ast.rs | head -n0 time: 0.002; rss: 55MB -> 60MB ( +5MB) parse_crate $ tree-sitter parse examples/ast.rs --quiet --time examples/ast.rs 6.48 ms 9908 bytes/ms
But if you edit the file after parsing it, tree-sitter can generally update the previous existing syntax tree to reflect your edit in less than a millisecond, thanks to its incremental parsing system.
References
- The Rust Reference — While Rust does not have a specification, the reference tries to describe its working in detail. It tends to be out of date.
- Keywords and Operators and Symbols.
Metadata
Release files for tree-sitter-rust 0.24.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tree_sitter_rust-0.24.2.tar.gz | 339.3 kB | Without provenance | Details for tree_sitter_rust-0.24.2.tar.gz |
Built distributions (wheels)
Total release size: 1.5 MB
Release files / tree_sitter_rust-0.24.2.tar.gz
| Download URL | tree_sitter_rust-0.24.2.tar.gz |
|---|---|
| Size | 339.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54fb02a5911e345308b405174465112479f56dc39e3f1e7744d7568595f00db9
|
|
BLAKE2b-256 checksum How to use checksums |
b78775cbd22b927267d310f76cca1ab3c1d9d41035dfa3eb9cc95f96ee199440
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / tree_sitter_rust-0.24.2-cp39-abi3-win_arm64.whl
| Download URL | tree_sitter_rust-0.24.2-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 128.2 kB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
66ba90f61bd54f4c4f5d30434957daf64507c16b0313df76becb37d63f70a227
|
|
BLAKE2b-256 checksum How to use checksums |
b9d8050a781172745bc345f98abb7c56e72022ea0790f8e793de981c83c2ef15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / tree_sitter_rust-0.24.2-cp39-abi3-win_amd64.whl
| Download URL | tree_sitter_rust-0.24.2-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 129.4 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4529c125d928882ddfb879fdc6bc0704913261ecc078b6fa7902559e0daf200d
|
|
BLAKE2b-256 checksum How to use checksums |
34717ef609894dbfe5699eb16f7471f9b8af1d958d8ba3e29c238d7607e8cb47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / tree_sitter_rust-0.24.2-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | tree_sitter_rust-0.24.2-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 162.4 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
da2b86099028fd42c6cd32878b7b16b01f8aac0f7b0e98742b7fa6bc3cf09b89
|
|
BLAKE2b-256 checksum How to use checksums |
a2e13519f866a4679ca36acd9f5a06a779ecb8a92b18887c5546458d521df557
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / tree_sitter_rust-0.24.2-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | tree_sitter_rust-0.24.2-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 168.7 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
87930163a462408c49ab62c667e74029bc26b4cc7123dd1bdc7352215786c64a
|
|
BLAKE2b-256 checksum How to use checksums |
95a8f85b1ca75e01361ca5f92d226593ca4857cea49551b9f6c8fa6fc08ea917
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / tree_sitter_rust-0.24.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | tree_sitter_rust-0.24.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 170.3 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
9d76d1208c3638b871236090759dfc13d478921320653a6c9da5336e7c58f65a
|
|
BLAKE2b-256 checksum How to use checksums |
b5f6a5a146df5c0a5daea3ffcd5d7245775fe7f084357770d5a313dd6245ae78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / tree_sitter_rust-0.24.2-cp39-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | tree_sitter_rust-0.24.2-cp39-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 164.7 kB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e033c5a93b57c88e0a835880de39fc802909ff69f57aaff6000211c196ea5190
|
|
BLAKE2b-256 checksum How to use checksums |
ca45a051bbd3045a61182dde25b93ae9a33d2677c935b16952283e12eaf46051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / tree_sitter_rust-0.24.2-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | tree_sitter_rust-0.24.2-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 136.8 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
01a46622735498493f29f3e628a90de95c96a07bfbeb88996243eb986b1cee36
|
|
BLAKE2b-256 checksum How to use checksums |
782acf39f881a545360b5a86bb1accba1f4acc713daab01fb9edd35b6e84f473
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / tree_sitter_rust-0.24.2-cp39-abi3-macosx_10_9_x86_64.whl
| Download URL | tree_sitter_rust-0.24.2-cp39-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 129.5 kB |
| Tags | CPython 3.9 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
3620cfd12340efa43082d45df76349ff511893a9c361da2f8d6d51e307020a59
|
|
BLAKE2b-256 checksum How to use checksums |
d0242b2d33af5e27c84a4fde4e8cd2594bb4ab1e1cf48756a9f40dadc84956cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for tree-sitter-rust 0.24.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.