2 releases

0.1.2 Jan 14, 2025
0.1.0 Jan 14, 2025

#22 in #admin


Used in 2 crates

MIT license

4KB

Check if the current user is admin, use powershell on windows and libc::getuid/libc::geteuid on unix

fn main() {
    println!("is_admin: {}", is_admin::is_admin())
}

Dependencies

~43KB