Registry / other / leptonica-sys

leptonica-sys

JSON →
library0.4.9rscratesunverified

FFI bindings for Leptonica.

# Cargo.toml [dependencies] leptonica-sys = "0.4.9"
INSTALL
IMPORT
SIG · LEPTONICA-SYS
L
leptonica-sys
otherrustv0.4.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pixRead
use leptonica_sys::pixRead;

Reads an image using Leptonica's C API (requires Leptonica library installed).

use leptonica_sys::pixRead; fn main() { unsafe { let pix = pixRead(b"image.png\0" as *const _ as *const i8); if !pix.is_null() { println!("Image loaded"); } } }
Debug
Known issues
gotchaRequires Leptonica C library installed on the system.
fix
Install Leptonica via system package manager or build from source.
affects: >=0.4.0
Upgrade
Version history
0.4.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
leptonica-sys — cargo add leptonica-sys · libregistry