Crates.io | adguard-flm-ffi |
lib.rs | adguard-flm-ffi |
version | 1.1.16 |
source | src |
created_at | 2024-08-28 14:02:59.463656 |
updated_at | 2024-12-11 15:37:07.33279 |
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 | 4,177,597 |
This crate is a set of bindings over filter-list-manager and build configurations for FFI bindings to interface with other programming languages.
There are currently two POSSIBLE ways to work with this library:
You may need regenerate protobuf files for rust and flm_native_interface.h
header:
cargo run -p ffi-native-assets-generator
.
It's better run this operation from the workspace root.
If you need to generate protobuf *.swift files:
platform/apple/Scripts/generate_proto.sh
This code will build a package compatible macOS, iOS, simulator.
platform/apple/Scripts/configure.sh
platform/apple/Scripts/build.sh
See readme for uniffi-based build on GitHub or protobuf-based here
Look at these symbols for better understanding FFI interface.
Native interface source C Header source
OuterError
- flattened enum from adguard_flm::FLMError
.
Source