Thanks to visit codestin.com
Credit goes to lib.rs

3 releases

Uses new Rust 2024

0.1.4 Jul 14, 2025
0.1.2 Jan 14, 2025
0.1.0 Jan 14, 2025

#16 in #power-shell


Used in 5 crates

MIT license

5KB

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

~42KB