Rust grammar for tree-sitter
Project description
tree-sitter-rust
Rust grammar for tree-sitter.
Features
-
Speed — When initially parsing a file,
tree-sitter-rust
takes 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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tree_sitter_rust-0.23.0.tar.gz
(312.8 kB
view hashes)
Built Distributions
Close
Hashes for tree_sitter_rust-0.23.0-cp39-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62fcb0243f3759d832a4c46a8be9d01e3119697c5ed3e47c9fdcd4dc353cd7cc |
|
MD5 | a37e93664b4bc80cf5b982378e80a00e |
|
BLAKE2b-256 | ca436b281ee65e9fcfe4a08c6f27f73b637a6be056836d6fd8cae2e052237e72 |
Close
Hashes for tree_sitter_rust-0.23.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4768be1e6409dd089ec8b4d04c03c122d1fd2037843f99ac4735decfc8821bcd |
|
MD5 | 7019397db1464ad3bbe34ec91efa97ed |
|
BLAKE2b-256 | f2c77330d39b455d4f325f2c86998a253ddb5a373c63b42d58d54e1b6ce100cb |
Close
Hashes for tree_sitter_rust-0.23.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2efe01eb519e2d263c10dacbfaa9d13f8c90e3b098f5a1543f0dc6c3638f7ef |
|
MD5 | 983e72bbc1013cf040304a5d03287257 |
|
BLAKE2b-256 | f800e77dfa7094e74fdddabcfeaa2422f6381ff4dd963f17427defc4a9586ea6 |
Close
Hashes for tree_sitter_rust-0.23.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f87e61cab7572d299cad9491d6a6f88d61854b33092b05ee3f3a2b358a37dec1 |
|
MD5 | 5036d39f23e598b41496428263714ba1 |
|
BLAKE2b-256 | 342d0312417814f06571af83a9b84cde9876db0af7af1b21942b47f18db52025 |
Close
Hashes for tree_sitter_rust-0.23.0-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ee6980808ac2062db911f4995ca7aba05bee6fede3da84fdc40708318fbd84 |
|
MD5 | df53348459f0392ee2a00dc2ad38e82a |
|
BLAKE2b-256 | fb47332fa66846dcca284b5e8a7fba6a8b5392888b30c7a42c1bc4dcc2febf49 |
Close
Hashes for tree_sitter_rust-0.23.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6adc18ad1f97a0451d23877cd4d4e10f0a0adefa366e8983f0ea73a2ca911d7 |
|
MD5 | 7a6b3dfd141f32c94ffab60ec482f565 |
|
BLAKE2b-256 | a3173d9dffc7b489382ac2e5512d504fcd7f13eacded18018b8aa46ef1dcdb9a |
Close
Hashes for tree_sitter_rust-0.23.0-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c30152341748906e9b1ab5749c878543aa874dfb54674375fe314168df45bdc |
|
MD5 | 5be382cbf25ae7f1faa83565fa53fbd1 |
|
BLAKE2b-256 | 7089daa100afdb65dc3d811b95f5bc28538251358c200fb5cbafb356f5df1ee9 |