is-admin

Crates.iois-admin
lib.rsis-admin
version0.1.4
created_at2025-01-14 08:42:44.300448+00
updated_at2025-07-14 05:06:10.998189+00
descriptionis-admin
homepagehttps://github.com/ahaoboy/is-admin
repositoryhttps://github.com/ahaoboy/is-admin
max_upload_size
id1515685
size11,312
阿豪 (ahaoboy)

documentation

README

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())
}
Commit count: 5

cargo fmt