peak-can-sys 0.1.0

FFI bindings for the API by PEAK-System Technik GmbH
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::env;

fn main() {
    println!("cargo:rustc-link-lib=PCANBasic"); // Link dynamically

    let target = env::var("TARGET").unwrap();

    // Ensure linking is handled correctly for Windows
    if target.contains("windows") {
        println!("cargo:rustc-link-lib=dylib=PCANBasic"); // Dynamic linking
    }
}