librobotcontrol-sys 0.4.0

Rust port of librobotcontrol
Documentation
1
2
3
4
5
6
7
8
use std::path::PathBuf;

fn main() {
    // This is the directory where the `c` library is located.
    let libdir_path = PathBuf::from("lib").canonicalize().expect("cannot canonicalize path");
    println!("cargo:rustc-link-search=native={}", libdir_path.to_str().unwrap());
    println!("cargo:rustc-link-lib=static=robotcontrol");
}