Crates.io | zim-sys |
lib.rs | zim-sys |
version | 0.1.0 |
source | src |
created_at | 2024-05-17 19:09:42.377388 |
updated_at | 2024-05-17 19:09:42.377388 |
description | Low-level FFI bindings for libzim |
homepage | |
repository | https://gitlab.com/alexanderacker/zim-sys |
max_upload_size | |
id | 1243586 |
size | 44,782 |
Work-in-progress experiment getting libzim bindings in Rust.
Currently only supports unix-based machines which also support libzim.
vcpkg
to find libzim on windowsThe build process requires clang
and the original library libzim
will be needed.
sudo apt-get install libzim-dev clang
cargo build
This process uses my custom C++ wrapper in zim-bind.cc
which catches exceptions and converts them to errors which can be accepted by rust.
Most of these are do to incompatible types that need to be converted.