is-root 0.1.3

A simple library to detect whether you are root/admin or not
Documentation
1
2
3
4
5
6
7
8
9
use is_root::is_root;

fn main() {
    if is_root() {
        println!("You are root");
    } else {
        println!("You are not root")
    }
}