capsicum 0.4.1

Simple intuitive Rust bindings for the FreeBSD capsicum framework
1
2
3
4
5
6
7
8
9
10
11
use std::env;

fn main() {
    println!("cargo::rustc-check-cfg=cfg(nightly)");
    if env::var("CARGO_CFG_TARGET_OS").unwrap() != "freebsd" {
        panic!("This is a FreeBSD only crate. It will not compile for other operating systems.");
    }
    if version_check::is_feature_flaggable() == Some(true) {
        println!("cargo:rustc-cfg=nightly")
    }
}