#regex #bindings #ffi #sys #tre

sys tre-regex-sys

Rust bindgen bindings to the TRE regex module

5 unstable releases

0.4.0 Mar 15, 2024
0.3.1 Jun 15, 2023
0.2.2 Jun 14, 2023
0.1.1 Jun 13, 2023

#1603 in Text processing


Used in tre-regex

BSD-2-Clause

485KB
13K SLoC

C 9K SLoC // 0.1% comments Python 1K SLoC // 0.2% comments Visual Studio Project 846 SLoC PO File 483 SLoC // 0.2% comments Rust 285 SLoC // 0.0% comments Shell 259 SLoC // 0.2% comments M4 195 SLoC // 0.3% comments Automake 141 SLoC // 0.1% comments Visual Studio Solution 29 SLoC

Contains (obscure autoconf code, 17KB) tre/configure.ac

tre-regex-sys

This is a crate that builds bindgen bindings for tre.

This does NOT provide a safe API wrapper! See tre-regex for a safe API wrapper.

For documentation, see the docs and the official TRE documentation.

Feature flags

The following features are available:

  • approx: Enable approximate matching functionality (enabled by default)
  • vendored: Enable vendored build copy of TRE instead of system TRE (enabled by default)
  • wchar: Enable functions designed to work with wchar_t (disabled by default)

Supported versions

At least TRE 0.8.0 should work, but the latest from git is highly recommended for various fixes; the last release is quite old by this point.

No runtime deps

~0–1.9MB
~37K SLoC