Skip to content

Pure-Rust regex engine support!

Compare
Choose a tag to compare
@trishume trishume released this 29 Mar 22:34
· 348 commits to master since this release

Headline feature: pure-Rust fancy-regex engine option

Users can now opt in to a pure-Rust regex engine using Cargo features, making
compilation easier in general. People experiencing difficulty compiling for
Windows and Wasm should try switching to fancy-regex. Note this currently
approximately halves highlighting speed.

See the Readme and #270 for details.
Thanks to @robinst for implementing this!

Other changes

  • Ability to generate CSS for a theme for use with classed HTML generation (won't always be correct) #274
  • Don't generate empty spans in classed HTML #276
  • Miscellaneous dependency bumps and cleanup

Breaking changes and upgrading

Upgrading should cause no errors for nearly all users. Users using more unusual APIs may have a small amount of tweaking to do.

  • Edit March 30: If you generate custom pack files and want to use fancy-regex you need to regenerate them. The binary format is the same but at YAML loading time regex rewrites get applied that make fancy-regex work properly.
  • If you use default-features = false you may need to update your features to choose a regex engine
  • A bunch of technically public APIs that I don't know if anyone uses changed due to the regex engine refactor, common uses shouldn't break