is_superuser 1.0.1

A cross-platform solution for finding out if the running user is a superuser.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# is_superuser

A simple cross-platform solution for deciding if a given user is privileged.
Works on Unix (Linux and MacOS) and Windows, please make an issue if it doesn't work for you!

Usage:
```rust
use is_superuser::is_superuser;
fn main() {
    if is_superuser() {
        println!("I am running with sudo/admin privileges!");
    } else {
        println!("I am a normal user!");
    }
}
```