Skip to content

v0.9.2

Compare
Choose a tag to compare
@github-actions github-actions released this 23 Dec 00:36
· 5 commits to main since this release
v0.9.2
cddc509

[0.9.2] - 2024-12-22

Library

  • [breaking] Added StringPattern and made Automaton no longer borrow the query. (#117#613)
    • The Automaton struct borrowed the source query, which also caused the Engine to carry the query's lifetime with it.
      The actual data being borrowed were the JsonString values for member transitions.
      In preparation for #117we remove the borrowed JsonString and replace it
      with StringPattern. For UTF-8 the StringPattern will be a more complex struct that precomputes some stuff for efficient matching later.
      For now, it's a thin wrapper over a JsonString.
    • During construction we may create many transitions over the same pattern.
      To reduce the size of the automaton we cache the patterns and put them into an Rc.
      This may get optimised later to instead use some kind of inline storage, but it's unlike to actually matter.
      I ran the benchmarks and saw no measurable difference between the previous version and this one.
    • This is a breaking API change -- the MainEngine is now lifetimeless and the Compiler trait requires the
      returned engine to be lifetimeless.

Dependencies

  • Bump arbitrary from 1.3.1 to 1.4.1
  • Bump clap from 4.5.2 to 4.5.23
  • Bump color-eyre from 0.6.2 to 0.6.3
  • Bump log from 0.4.21 to 0.4.22
  • Bump memmap2 from 0.9.4 to 0.9.5
  • Bump simple_logger from 4.3.3 to 5.0.0
  • Bump smallvec from 1.13.1 to 1.13.2
  • Bump thiserror from 1.0.58 to 2.0.9 (#617). (#617)
  • Remove nom as a direct dependency of rsonpath-lib