Skip to content
An FFI crate to expose functionality from brave/adblock-rust
Rust C++ C Makefile
Branch: master
Clone or download
Pull request Compare This branch is 3 commits behind brave:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
.gitignore
.valgrind.supp
BUILD.gn
Cargo.lock
Cargo.toml
LICENSE
Makefile
README.md
cbindgen.toml
config.gni

README.md

adblock-rust-ffi Build Status

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++.

Development

Working on this repository requires having Rust, g++, and valgrind installed.

Testing

There are end to end test binaries for C++ bindings, when run under valgrind we can ensure memory is being properly freed.

C++

Running tests

make sample

Regenerating the C header

cbindgen -o src/lib.h
You can’t perform that action at this time.