pidfile-rs 0.2.0

Rust wrapper for pidfile_* functions from libbsd/libutil
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(any(target_os = "dragonfly", target_os = "freebsd"))]
fn main() {
    println!("cargo:rustc-link-lib=util");
    println!("cargo:rerun-if-changed=build.rs");
}

#[cfg(not(any(target_os = "dragonfly", target_os = "freebsd")))]
fn main() {
    if system_deps::Config::new().probe().is_err() {
        println!("cargo:rustc-link-lib=dylib=bsd");
    }
}