#leptonica

sys leptonica-sys

FFI bindings for Leptonica

5 unstable releases

✓ Uses Rust 2018 edition

0.3.1 Jan 31, 2020
0.3.0 Dec 27, 2019
0.2.1 Jul 6, 2019
0.2.0 Jun 30, 2019
0.1.0 Jun 29, 2019

#160 in Images

Download history 28/week @ 2020-03-04 28/week @ 2020-03-11 34/week @ 2020-03-18 13/week @ 2020-03-25 12/week @ 2020-04-01 45/week @ 2020-04-08 39/week @ 2020-04-15 18/week @ 2020-04-22 34/week @ 2020-04-29 34/week @ 2020-05-06 41/week @ 2020-05-13 34/week @ 2020-05-20 18/week @ 2020-05-27 29/week @ 2020-06-03 26/week @ 2020-06-10 25/week @ 2020-06-17

127 downloads per month
Used in 5 crates

MIT license

15KB
59 lines

leptonica-sys

Rust FFI bindings to Leptonica.

Types and functions generated from the functions listed in allheaders.h.

Building

This links to the C library Leptonica.

On Fedora 30 the build dependencies can be installed by running:

sudo dnf install leptonica-devel clang

On Termux 2019 (Android, Android on Chromebooks) the additional dependencies can be installed by running:

pkg install libclang leptonica-dev

Building on Windows

On Windows, this library uses Microsoft's vcpkg to provide leptonica.

Please install vcpkg and set up user wide integration or vcpkg crate won't be able to find the library. By default vcpkg installs 32 bit libraries. If you need 64 bit libraries then set following environment variable

SET VCPKG_DEFAULT_TRIPLET=x64-windows

To install leptonica

REM from the vcpkg directory
.\vcpkg install leptonica

vcpkg allows building either dynamically or statically linked application

if you prefer dynamic linking

SET VCPKGRS_DYNAMIC=true

for statically linked libraries

SET RUSTFLAGS=-Ctarget-feature=+crt-static

Dependencies

~0–1.3MB
~29K SLoC