check_elevation 0.2.2

Check if the current process is elevated. A successor to the `is_elevated` crate. Now no_std!
Documentation
1
2
3
4
5
6
7
8
use check_elevation::is_elevated;

#[test]
fn test_is_elevated() {
    // On Windows, the test process should always be elevated when run as an administrator.
    // If we're not running as an administrator, the test will fail.
    assert_eq!(is_elevated().unwrap(), true);
}