Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
/ adblock-rust-ffi Public archive

An FFI crate to expose functionality from brave/adblock-rust

License

Notifications You must be signed in to change notification settings

brave/adblock-rust-ffi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An FFI crate to expose functionality from brave/adblock-rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published