{"id":13484057,"url":"https://github.com/tree-sitter/tree-sitter-rust","last_synced_at":"2025-05-14T01:11:52.226Z","repository":{"id":19251082,"uuid":"86603981","full_name":"tree-sitter/tree-sitter-rust","owner":"tree-sitter","description":"Rust grammar for tree-sitter","archived":false,"fork":false,"pushed_at":"2025-04-01T22:44:04.000Z","size":49837,"stargazers_count":403,"open_issues_count":23,"forks_count":112,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-12T06:56:21.004Z","etag":null,"topics":["parser","rust","tree-sitter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tree-sitter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"tree-sitter","patreon":null,"open_collective":"tree-sitter","ko_fi":"amaanq","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2017-03-29T16:17:04.000Z","updated_at":"2025-05-07T15:12:23.000Z","dependencies_parsed_at":"2023-11-17T12:28:30.189Z","dependency_job_id":"4730f349-0d70-42e2-9d81-1426b57d8dea","html_url":"https://github.com/tree-sitter/tree-sitter-rust","commit_stats":{"total_commits":424,"total_committers":35,"mean_commits":"12.114285714285714","dds":0.5212264150943396,"last_synced_commit":"1f63b33efee17e833e0ea29266dd3d713e27e321"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter%2Ftree-sitter-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter%2Ftree-sitter-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter%2Ftree-sitter-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter%2Ftree-sitter-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tree-sitter","download_url":"https://codeload.github.com/tree-sitter/tree-sitter-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253692389,"owners_count":21948316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","rust","tree-sitter"],"created_at":"2024-07-31T17:01:18.780Z","updated_at":"2025-05-14T01:11:47.209Z","avatar_url":"https://github.com/tree-sitter.png","language":"JavaScript","funding_links":["https://github.com/sponsors/tree-sitter","https://opencollective.com/tree-sitter","https://ko-fi.com/amaanq"],"categories":["JavaScript","Grammars"],"sub_categories":["Tree Sitter Org"],"readme":"# tree-sitter-rust\n\n[![CI][ci]](https://github.com/tree-sitter/tree-sitter-rust/actions/workflows/ci.yml)\n[![discord][discord]](https://discord.gg/w7nTvsVJhm)\n[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)\n[![crates][crates]](https://crates.io/crates/tree-sitter-rust)\n[![npm][npm]](https://www.npmjs.com/package/tree-sitter-rust)\n[![pypi][pypi]](https://pypi.org/project/tree-sitter-rust)\n\nRust grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).\n\n## Features\n\n- **Speed** — When initially parsing a file, `tree-sitter-rust` takes around two to three times\n  as long as rustc's hand-written parser.\n\n  ```sh\n  $ wc -l examples/ast.rs\n    2157 examples/ast.rs\n\n  $ rustc -Z unpretty=ast-tree -Z time-passes examples/ast.rs | head -n0\n    time:   0.002; rss:   55MB -\u003e   60MB (   +5MB)  parse_crate\n\n  $ tree-sitter parse examples/ast.rs --quiet --time\n    examples/ast.rs    6.48 ms        9908 bytes/ms\n  ```\n\n  But if you _edit_ the file after parsing it, tree-sitter can generally _update_\n  the previous existing syntax tree to reflect your edit in less than a millisecond,\n  thanks to its incremental parsing system.\n\n## References\n\n- [The Rust Reference](https://doc.rust-lang.org/reference/) — While Rust does\n  not have a specification, the reference tries to describe its working in detail.\n  It tends to be out of date.\n- [Keywords](https://doc.rust-lang.org/stable/book/appendix-01-keywords.html) and\n  [Operators and Symbols](https://doc.rust-lang.org/stable/book/appendix-02-operators.html).\n\n[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-rust/ci.yml?logo=github\u0026label=CI\n[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord\u0026label=discord\n[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix\u0026label=matrix\n[npm]: https://img.shields.io/npm/v/tree-sitter-rust?logo=npm\n[crates]: https://img.shields.io/crates/v/tree-sitter-rust?logo=rust\n[pypi]: https://img.shields.io/pypi/v/tree-sitter-rust?logo=pypi\u0026logoColor=ffd242\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftree-sitter%2Ftree-sitter-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftree-sitter%2Ftree-sitter-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftree-sitter%2Ftree-sitter-rust/lists"}