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.
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.
Add mobi-sys
as a dependency in Cargo.toml
:
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.
rust
extern crate mobi_sys;
Copyright © 2018 Max Böcker
Distributed under the MIT License/Apache-v2.