brave / adblock-rust-ffi

An FFI crate to expose functionality from brave/adblock-rust
Mozilla Public License 2.0
47 stars 16 forks source link

Initial FFI wrapper #1

Closed bbondy closed 5 years ago

bbondy commented 5 years ago

This PR creates a simple wrapper around the brave/adblock-rust library for eventual use in brave-core.

I haven't figured out why yet, but my valgrind segfaults I think due to something in the adblock-rust lib when parse_filters is called and not from the ffi wrapper.

brave/adblock-rust is not yet published as a crate so I just resolve it locally for now.

bbondy commented 5 years ago

I'm going to merge to make the workflow a bit easier but feel free to add more feedback and I'll implement anything you suggest. Thanks!