Skip to content

Releases: hydro-project/rust-sitter

v0.4.3

26 Oct 02:34
Compare
Choose a tag to compare

v0.4.2

19 Apr 04:56
Compare
Choose a tag to compare

What's Changed

Full Changelog: rust-sitter-v0.4.1...rust-sitter-v0.4.2

v0.4.1

05 Nov 00:51
Compare
Choose a tag to compare

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

Full Changelog: rust-sitter-v0.3.4...rust-sitter-v0.4.1

v0.3.4

11 Jun 20:41
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: rust-sitter-v0.3.3...rust-sitter-v0.3.4

v0.3.3

02 Apr 18:22
Compare
Choose a tag to compare

What's Changed

  • Expose language function as public by @calintat in #38
  • Handle extra nodes as immediate children of an enum node by @shadaj in #40

New Contributors

Full Changelog: rust-sitter-v0.3.2...rust-sitter-v0.3.3

v0.3.2

27 Mar 05:33
Compare
Choose a tag to compare

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

25 Feb 22:26
Compare
Choose a tag to compare

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

Full Changelog: rust-sitter-v0.2.1...rust-sitter-v0.3.0

v0.2.1

02 Feb 00:02
Compare
Choose a tag to compare

Switches the default Tree Sitter runtime to https://github.com/shadaj/tree-sitter-c2rust to enable support for wasm32-unknown-unknown.

v0.2.0

03 Jan 20:27
Compare
Choose a tag to compare

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 unmaintained tempdir by @MingweiSamuel in #7
  • Fix Tree Sitter tool crash due to empty vec contents non-terminal by @shadaj in #11

New Contributors

Full Changelog: https://github.com/hydro-project/rust-sitter/commits/rust-sitter-v0.2.0

v0.1.2

23 Aug 02:39
Compare
Choose a tag to compare

Bug Fixes 🐛

  • Fix bindings generation for enums with named fields PR #2
  • Avoid crashes when generating grammar rules and bindings for unnamed Vec fields PR #3