| Crates.io | vips-sys |
| lib.rs | vips-sys |
| version | 0.1.3-beta.2 |
| created_at | 2018-04-18 20:33:13.469004+00 |
| updated_at | 2025-11-02 12:45:57.347518+00 |
| description | libvips bindings for Rust |
| homepage | |
| repository | https://github.com/houseme/vips-sys |
| max_upload_size | |
| id | 61321 |
| size | 30,898 |
Low-level Rust FFI bindings for libvips. Designed to be stable, minimal, and a foundation for higher-level wrappers.
libvips >= 8.2 (validated on 8.17.2)brew install vips pkg-configPKG_CONFIG_PATH=/opt/homebrew/lib/pkgconfigsudo apt-get install -y libvips-dev pkg-configvcpkg install vips and ensure the environment is visible to cargoVerify pkg-config --cflags --libs vips works (MSVC links via vcpkg).
static: prefer static linkingdynamic: prefer dynamic linking (default)helpers: minimal helpers for init/shutdown/versionBuild-time exports:
LIBVIPS_VERSION: detected libvips version stringcfg(vips_8_17): enabled when version >= 8.17helpers)use vips_sys::helpers;
fn main() {
helpers::init("vips-sys-example").expect("vips init failed");
let (a, b, c) = helpers::version();
println!("libvips version: {}.{}.{}", a, b, c);
helpers::shutdown();
}
Cargo:
[dependencies]
vips-sys = { version = "0.1.3-beta.2", features = ["helpers"] }
This crate uses bindgen:
pkg-config and pass to clanglayout_tests disabled, rustified_enum(".*") enabledEnvironment:
PKG_CONFIG_PATH: path for vips.pcLIBVIPS_NO_BINDGEN: skip bindgen and reuse generated outputBINDGEN_EXTRA_CLANG_ARGS: extra -I or flagsLIBCLANG_PATH: path to libclang if neededvips:
libvips and pkg-config (or vcpkg on Windows)PKG_CONFIG_PATHLIBCLANG_PATH, or add include dirs via BINDGEN_EXTRA_CLANG_ARGSSee CHANGELOG.md.