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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for tree_sitter_rust-0.0.1-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db601070c5a5d5907a959859c12196f3b83e4603690bea90605da9724465c845 |
|
MD5 | 729771244438f9ebad087c4f70d67fbe |
|
BLAKE2b-256 | 63c0dcb95e15df563d1eb07fd6fb7d74ac98d74bcbfa35831268bfc896edeed1 |
Close
Hashes for tree_sitter_rust-0.0.1-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b9e4c7d22b0232699b522ab5efd328b06e42b94f0605f547752ac8fc4a7de7 |
|
MD5 | 6dbf62afb0ee681d5f71d03d1a9dc2b3 |
|
BLAKE2b-256 | 28021c93648ce68fc4565ba31de42570b616a38e605b82934067f5c84a68dd74 |
Close
Hashes for tree_sitter_rust-0.0.1-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c088f32767f125e69311e43c29b2cb32f04e590ec60d8ecd6ee6b261bf9ba8e6 |
|
MD5 | 27657c2ca307c416e29ccefa90b6a494 |
|
BLAKE2b-256 | 5a6be75d10dae994cab9aa179d36f2bff1c93e2303bd0822870cdfd9484145ef |
Close
Hashes for tree_sitter_rust-0.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ce2c92e2040d5ce766547a74c405784c8ba84eec4ba07199e1a27eae9b69343 |
|
MD5 | d0f40583d192ab4d8792a5595fd55615 |
|
BLAKE2b-256 | 3cc46e13be0d5031e78c2709c2d4659e9d0638d2556e838849967838ae00767d |
Close
Hashes for tree_sitter_rust-0.0.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77c2af4dba6f4185ec8fb4b77919d59144895e64b355290e4f60e6ff3dff9724 |
|
MD5 | 5b3ed45520f8f54319cd98295a59b9eb |
|
BLAKE2b-256 | 8325f28c555f5a1deba2156c50d29be5eef8d22b4d04df99311f2abc0d98407d |
Close
Hashes for tree_sitter_rust-0.0.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10c6cc4c0f832db2dcd6ce5e5e0af97e2e9d7401813944c7cfd8a0d4992eb019 |
|
MD5 | 491580d0fba8e58ecfbbd5295b362480 |
|
BLAKE2b-256 | 0b6abecf7f2cf48c7942480929b12e1b0184aacb24c2561408847ad92dfa00ac |
Close
Hashes for tree_sitter_rust-0.0.1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e549821b438810316881b639be6d1ec797decd6c3b84060715e30a79bbffde8a |
|
MD5 | 0cd17fd13ad5ccea355c07bf01662212 |
|
BLAKE2b-256 | 47902cff5fa08609e0afe6b862449d9e6b1d45d37d80f3ee3c1e28fc31b737c6 |