Skip to content

2.0.0: vendored RE2 2023-09-01 & native gems

Compare
Choose a tag to compare
@mudge mudge released this 13 Sep 18:11
· 178 commits to main since this release

This is a major new version of re2 which no longer requires the RE2 library to be installed as the latest version (2023-09-01) is now vendored with the gem.

Vendored RE2

Installing the gem will also compile and install RE2 (and its dependency, Abseil). As this can take some time, precompiled native gems are available for the following platforms meaning there’s no need to wait for compilation in the majority of cases:

  • aarch64-linux (requires: glibc >= 2.29)
  • arm-linux (requires: glibc >= 2.29)
  • arm64-darwin
  • x64-mingw32 / x64-mingw-ucrt
  • x86-linux (requires: glibc >= 2.17)
  • x86_64-darwin
  • x86_64-linux (requires: glibc >= 2.17)

Breaking changes

Due to a new dependency on MiniPortile2 and the need to include compiled C extensions for every supported version of Ruby in the native gems, this major version drops support for all Ruby versions prior to 2.6.

Opting out of the vendored RE2

To opt out of using the gem’s vendored dependencies and instead rely on the previous behaviour of linking against a system install of RE2, use the --enable-system-libraries option when installing the gem.

Note you’ll also need to use the ruby platform to avoid the native gems either via gem install re2 --platform=ruby -- --enable-system-libraries or Bundler's force_ruby_platform option.

Thanks

This major release would not have happened without @stanhu.


SHA256 checksums:

677ddce4c38d659de899651acbfd7c6b5331f984a7101d9179ac247284f2212a  re2-2.0.0-aarch64-linux.gem
f657d689922e5ac215b486e4f2ca909f1079eab616269a1d8fc0cccd63ef28af  re2-2.0.0-arm-linux.gem
ffc8e5663381ff344ee6a2e55c7d0be81ef9b43174a41e977c4e18a11f965be1  re2-2.0.0-arm64-darwin.gem
253b3de21ca563cdb93c9fd69738a2a66713e381bae4530ff2cae105c6fd1a8e  re2-2.0.0-x64-mingw-ucrt.gem
d4b52fc21719f262c2a438912f009da868b31aed1688ec90e4e1696898fb53d3  re2-2.0.0-x64-mingw32.gem
26abee219e3fd69ba5c6a7bdb882880b8af6502cf912da7a7837e38ad02a29e7  re2-2.0.0-x86-linux.gem
ffec6da4c547e44a6c1a467b0b01b2dcc2940e081923221a2ac3e4b08a219c26  re2-2.0.0-x86-mingw32.gem
48b3ba3fea8cc84709a4195300cd1c627b2496f16e5865662c54e67f7aca1ccf  re2-2.0.0-x86_64-darwin.gem
1fb161e6e5d9efed59ed0062536f2cb9ab5fba367e209d0dc66f99f2864d42ff  re2-2.0.0-x86_64-linux.gem
09075fab88b7ab40c2374d75a20504408dc26539c11931b146d5f72892718925  re2-2.0.0.gem