A FFI crate C++ wrapper to expose functionality from adblock-rust
The adblock-rust
crate implements an Adblock Plus (ABP) filter parser and matcher. This
crate exposes C FFI functions and is configured to produce a static library so that the functionality
can be used in other languages.
Currently there are only bindings for C++.
Working on this repository requires having Rust, g++, and valgrind installed.
There are end to end test binaries for C++ bindings, when run under valgrind we can ensure memory is being properly freed.
make sample
cbindgen -o src/lib.h