#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

#1305 in Text processing

Download history 4/week @ 2024-02-18 14/week @ 2024-02-25 115/week @ 2024-03-10 28/week @ 2024-03-17 1/week @ 2024-03-24 34/week @ 2024-03-31 29/week @ 2024-04-14

68 downloads per month
Used in tre-regex

BSD-2-Clause

465KB
12K SLoC

C 9K SLoC // 0.1% comments Python 1K SLoC // 0.2% comments Visual Studio Project 846 SLoC 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.8MB
~36K SLoC