rust-re2: add wrapper for calling Re2 from Rust
This assumes that Re2 is installed following Google's guide. I am not sure how we want to integrate it in the project, but I think a follow-up patch would be more appropriate for such work. As it stands, *not* having Re2 installed results in a compilation error, which is a problem as it breaks install compatibility. Hence, this is gated behind a non-default `with-re2` compilation feature. Differential Revision: https://phab.mercurial-scm.org/D7910
Showing
- rust/Cargo.lock 8 additions, 0 deletionsrust/Cargo.lock
- rust/hg-core/Cargo.toml 10 additions, 1 deletionrust/hg-core/Cargo.toml
- rust/hg-core/build.rs 25 additions, 0 deletionsrust/hg-core/build.rs
- rust/hg-core/src/lib.rs 2 additions, 0 deletionsrust/hg-core/src/lib.rs
- rust/hg-core/src/re2/mod.rs 21 additions, 0 deletionsrust/hg-core/src/re2/mod.rs
- rust/hg-core/src/re2/re2.rs 66 additions, 0 deletionsrust/hg-core/src/re2/re2.rs
- rust/hg-core/src/re2/rust_re2.cpp 49 additions, 0 deletionsrust/hg-core/src/re2/rust_re2.cpp
- rust/hg-cpython/Cargo.toml 2 additions, 1 deletionrust/hg-cpython/Cargo.toml
- setup.py 12 additions, 3 deletionssetup.py
Loading
Please register or sign in to comment