libopenraw-sys 0.1.1

Rust FFI for libopenraw
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    // Tell cargo to invalidate the built crate whenever the wrapper changes
    println!("cargo:rerun-if-changed=wrapper.h");

    if std::env::var("DOCS_RS").is_ok() {
        return;
    }

    // Detect libraries with pkg-config
    let libopenraw = pkg_config::Config::new().probe("libopenraw-0.3").unwrap();

    // Tell cargo to tell rustc to link the system libopenraw shared library
    for lib in &libopenraw.libs {
        println!("cargo:rustc-link-lib={}", lib);
    }
}