|0.2.5||Aug 27, 2020|
|0.2.4||Aug 19, 2020|
|0.2.2||Jun 9, 2019|
|0.2.1||Apr 25, 2019|
|0.1.1||Aug 20, 2018|
#23 in Emulators
6,244 downloads per month
Used in 7 crates (via pcre2)
Bindings for PCRE2.
Dual-licensed under MIT or the UNLICENSE.
Add this to your
[dependencies] pcre2-sys = "0.1"
and this to your crate root:
extern crate pcre2_sys;
-sys crate, this exposes only the bindings to PCRE2 based on the header
file. The PCRE2 documentation itself should be consulted in order to use this
The bindings for this crate were generated for PCRE 10.31. This crate intends to track the current release of PCRE2.
The build script for this crate prefers dynamically linking with the host's PCRE2 system library. If that isn't available or if static linking is desired, then PCRE2 is built from source and statically linked.
Static linking will automatically happen for MUSL targets, but can be forced by
PCRE2_SYS_STATIC environment variable to
1. Similarly, if
PCRE2_SYS_STATIC is set to
0, then static linking will be forcefully
disabled, even for MUSL targets.
Currently, this crate only supports
This crate has been tested to work on Windows, Linux and macOS. Other platforms may work, and PRs to support them are welcome.
If you're compiling this crate on Windows with the GNU toolchain, then you'll need to make sure you have a compatible C compiler installed, such as the one provided by the mingw-w64 project.
PCRE2_SYS_DEBUG flag to forcefully enable debug symbols when doing a
static build, even when compiling in release mode.