File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " tree-sitter-rust"
33description = " Rust grammar for tree-sitter"
4- version = " 0.20.3 "
4+ version = " 0.20.4 "
55authors = [" Max Brunsfeld <maxbrunsfeld@gmail.com>" ]
66license = " MIT"
77readme = " bindings/rust/README.md"
Original file line number Diff line number Diff line change 11# tree-sitter-rust
22
3- This crate provides a Rust grammar for the [ tree-sitter] [ ] parsing library. To
3+ This crate provides a Rust grammar for the [ tree-sitter] [ ] parsing library. To
44use this crate, add it to the ` [dependencies] ` section of your ` Cargo.toml `
5- file. (Note that you will probably also need to depend on the
5+ file. (Note that you will probably also need to depend on the
66[ ` tree-sitter ` ] [ tree-sitter crate ] crate to use the parsed result in any useful
77way.)
88
9- ``` toml
9+ ``` toml
1010[dependencies ]
11- tree-sitter = " 0.17 "
12- tree-sitter-rust = " 0.16 "
11+ tree-sitter = " 0.20.10 "
12+ tree-sitter-rust = " 0.20.4 "
1313```
1414
1515Typically, you will use the [ language] [ language func ] function to add this
1616grammar to a tree-sitter [ Parser] [ ] , and then use the parser to parse some code:
1717
18- ``` rust
18+ ``` rust
1919let code = r # "
2020 fn double(x: i32) -> i32 {
2121 x * 2
@@ -29,7 +29,6 @@ let parsed = parser.parse(code, None);
2929If you have any questions, please reach out to us in the [ tree-sitter
3030discussions] page.
3131
32- [ Language ] : https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html
3332[ language func ] : https://docs.rs/tree-sitter-rust/*/tree_sitter_rust/fn.language.html
3433[ Parser ] : https://docs.rs/tree-sitter/*/tree_sitter/struct.Parser.html
3534[ tree-sitter ] : https://tree-sitter.github.io/
Original file line number Diff line number Diff line change 11{
22 "name" : " tree-sitter-rust" ,
3- "version" : " 0.20.3 " ,
3+ "version" : " 0.20.4 " ,
44 "description" : " Rust grammar for tree-sitter" ,
55 "main" : " bindings/node" ,
66 "keywords" : [
You can’t perform that action at this time.
0 commit comments