#bindings #ebook #mobi #azw

sys mobi-sys

FFI bindings to libmobi

3 releases

0.1.2 Dec 10, 2018
0.1.1 Dec 7, 2018
0.1.0 Dec 7, 2018

#20 in #ebook

27 downloads per month

MIT/Apache

7KB

Libmobi Rust Bindings

The mobi-sys crate provides declarations and linkage for the libmobi C library. Following the *-sys package conventions, the mobi-sys crate does not define higher-level abstractions over the native libmobi library functions.

Dependencies

In order to use the mobi-sys crate, you must have libmobi library or a compatible alternative installed. Visit the libmobi github page for information on the installation process.

As this bindings are generated by bindgen Clang 3.7 or greater is also required.

Usage

Add mobi-sys as a dependency in Cargo.toml:

[dependencies]
mobi-sys = "0.1.2"

Import the mobi_sys crate and use the functions as they're defined in the native libmobi library. See the libmobi API documention for more usage information.

extern crate mobi_sys;

License

Copyright © 2018 Max Böcker

Distributed under the MIT License/Apache-v2.

Dependencies

~0–2.2MB
~43K SLoC