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

Backport from brave-core #42

Open bterrier opened 2 years ago

bterrier commented 2 years ago

The copy of adblock-rust-ffi living in brave-core has been updated. This commit backports all the valuable changes.

First, does it make sense to make pull request to this repo? It seems abandoned.

I did not backport changes that were made just for Brave like the change to the crate type or the #include of raw_ptr. I had to move from gnu++0x to c++17 to use std::optional instead of absl::optional, not sure if this is acceptable. I had to fix 2 tests because of the addition of try/catch blocks and "disable" 1 test because of an upstream breaking change in adblock-rust.