Releases: hydro-project/rust-sitter
v0.4.3
Full Changelog: rust-sitter-v0.4.2...rust-sitter-v0.4.3
v0.4.2
What's Changed
Full Changelog: rust-sitter-v0.4.1...rust-sitter-v0.4.2
v0.4.1
What's Changed
- feat: improve the ergonomics of empty leaf nodes by @soqb in #45
- Output relevant grammar files to the build directory if requested by @ilonachan in #48
- feat: use
syn::Error
instead of panicking to improve error reporting by @soqb in #46 - #14 Deduplicate field logic into runtime utility by @ilonachan in #47
New Contributors
- @soqb made their first contribution in #45
- @ilonachan made their first contribution in #48
Full Changelog: rust-sitter-v0.3.4...rust-sitter-v0.4.1
v0.3.4
What's Changed
- Suppress all C warnings by @alexarice in #41
- Fix typo in warning suppression by @alexarice in #43
New Contributors
- @alexarice made their first contribution in #41
Full Changelog: rust-sitter-v0.3.3...rust-sitter-v0.3.4
v0.3.3
v0.3.2
What's Changed
- Fix missing header files when compiling for WASM on macOS by @shadaj in #33
- Allow leaves to be wrapped in Vec/Spanned by @shadaj in #35
- Use each CC flag only if supported by @MingweiSamuel in #36
- Fix WASM sysroot breaking runtime behavior by @shadaj in #37
Note, v0.3.1 was skipped due to a broken WASM runtime.
Full Changelog: rust-sitter-v0.3.0...rust-sitter-v0.3.2
v0.3.0
What's Changed
- Fix README example by renaming Expression -> Expr by @NicholasLYang in #21
- feat: allow specifying tree-sitter word property by @dataphract in #8
- Add Rustdoc for rust_sitter::extra by @shadaj in #24
- Implement Deref for Spanned for better ergonomics by @shadaj in #26
- Add non-associative prec operator and code completion for prec_right by @shadaj in #27
- Move Tree Sitter re-export to a module of runtime by @shadaj in #29
- Provide a more concrete example in extra's Rustdoc by @shadaj in #30
- Update Readme to talk about ignoring whitespace by @Pat-Lafon in #28
- Suppress
unused-but-set-variable
warnings when building parser by @shadaj in #31
New Contributors
- @NicholasLYang made their first contribution in #21
- @dataphract made their first contribution in #8
- @Pat-Lafon made their first contribution in #28
Full Changelog: rust-sitter-v0.2.1...rust-sitter-v0.3.0
v0.2.1
Switches the default Tree Sitter runtime to https://github.com/shadaj/tree-sitter-c2rust to enable support for wasm32-unknown-unknown
.
v0.2.0
This release features a wide range of new features, including new annotations to control parsing (rust_sitter::skip
) and a new type to extract span information from parsed nodes Spanned<_>
. In addition, the docs have been revamped to explain all of Rust Sitter's features in more detail, and the library itself has been refactored to improve robustness for complex grammars!
Highlights 🎉
- Support enum with named field. by @pocket7878 in #2
- Add support for enum with unnamed vector field. by @pocket7878 in #3
- Add spanned trait to get index ranges of parsed nodes by @shadaj in #9
- Support Vec<Option<_>> fields by @shadaj in #15
- Add
rust_sitter::skip
attribute for extra fields by @shadaj in #18
Bug Fixes 🐛
- Use
tempfile
instead of unmaintainedtempdir
by @MingweiSamuel in #7 - Fix Tree Sitter tool crash due to empty vec contents non-terminal by @shadaj in #11
New Contributors
- @pocket7878 made their first contribution in #1
- @MingweiSamuel made their first contribution in #7
- @shadaj made their first contribution in #9
Full Changelog: https://github.com/hydro-project/rust-sitter/commits/rust-sitter-v0.2.0