Crates.io | wkhtmltox-sys |
lib.rs | wkhtmltox-sys |
version | 0.1.2 |
source | src |
created_at | 2016-07-23 04:09:47.826781 |
updated_at | 2016-08-01 08:27:24.871585 |
description | FFI bindings to wkhtmltox |
homepage | |
repository | https://github.com/anowell/wkhtmltox-sys |
max_upload_size | |
id | 5758 |
size | 33,960 |
Auto-generated bindings to libwkhtmltox
See wkhtmltopdf-rs for the abstracted higher-level bindings.
You'll need libwkhtmltox installed.
This is generated with bindgen:
$ bindgen --link=dynamic=wkhtmltox include/pdf.h > src/pdf.rs
$ bindgen --link=dynamic=wkhtmltox include/image.h > src/image.rs
$ cargo fmt
The Rust example is built with cargo:
cargo test
target/debug/examples/convert-string
The C example can be built with gcc:
gcc -g -Wall examples/convert-string.c -o target/convert-string-c -lwkhtmltox
target/convert-string-c