capsicum 0.1.3

Simple intuitive Rust bindings for the FreeBSD capsicum framework
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate version_check as rustc;

#[cfg(target_os = "freebsd")]
fn freebsd_nop() {
}

#[cfg(not(target_os = "freebsd"))]
fn freebsd_nop() {
    panic!("This is a FreeBSD only crate. It will not compile on other OSes.");
}

fn main() {
    freebsd_nop();
    if rustc::is_feature_flaggable() == Some(true) {
        println!("cargo:rustc-cfg=nightly")
    }
}