rcap 0.1.4

A library to work with Linux capabilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::process::Command;

const LINUX_CAP_FILE: &'static str = "/usr/include/linux/capability.h";

fn main() {
    if cfg!(not(target_os = "linux")) {
        panic!("Platform not supported");
    };

    Command::new("./build.sh")
        .arg(LINUX_CAP_FILE)
        .output().unwrap_or_else(|e| {
                panic!("failed to execute process: {}", e)
    });
}