Crates.io | adguard-flm-ffi |
lib.rs | adguard-flm-ffi |
version | 0.8.17 |
source | src |
created_at | 2024-08-28 14:02:59.463656 |
updated_at | 2024-11-07 16:42:18.874932 |
description | Foreign function interface crate for filter list manager library |
homepage | https://adguard.com |
repository | https://github.com/AdguardTeam/FilterListManager |
max_upload_size | |
id | 1354689 |
size | 63,110 |
Foreign function interface crate for filter list manager library.
For generating FFI bindings, the uniffi-rs library is used.
rustup target add x86_64-apple-darwin aarch64-apple-darwin # for macOS universal framework
rustup target add x86_64-apple-ios aarch64-apple-ios-sim # for iPhone simulator universal framework
rustup target add aarch64-apple-ios # for iOS framework
cd ${REPO_ROOT}
./platform/apple/build.sh
tbd...
This crate is a set of bindings over filter-list-manager and build configurations for FFI bindings to interface with other programming languages. Currently, the FFI wrapper uses a Mutex wrapper around FLM, keep this in mind.
For example:
update_filters
method.Specifically for this case, the solution will be to use the second parameter of
the update_filters
method - loose_timeout
.
Look at these symbols for better understanding FFI interface.
OuterError
- flattened enum from adguard_flm::FLMError
.
Outer Error