Skip to content

Commit d791ce1

Browse files
committed
0.20.4
1 parent b87d992 commit d791ce1

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tree-sitter-rust"
33
description = "Rust grammar for tree-sitter"
4-
version = "0.20.3"
4+
version = "0.20.4"
55
authors = ["Max Brunsfeld <[email protected]>"]
66
license = "MIT"
77
readme = "bindings/rust/README.md"

bindings/rust/README.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
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
44
use 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
77
way.)
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

1515
Typically, you will use the [language][language func] function to add this
1616
grammar to a tree-sitter [Parser][], and then use the parser to parse some code:
1717

18-
``` rust
18+
```rust
1919
let code = r#"
2020
fn double(x: i32) -> i32 {
2121
x * 2
@@ -29,7 +29,6 @@ let parsed = parser.parse(code, None);
2929
If you have any questions, please reach out to us in the [tree-sitter
3030
discussions] 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/

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": [

0 commit comments

Comments
 (0)