| Crates.io | is-admin |
| lib.rs | is-admin |
| version | 0.1.4 |
| created_at | 2025-01-14 08:42:44.300448+00 |
| updated_at | 2025-07-14 05:06:10.998189+00 |
| description | is-admin |
| homepage | https://github.com/ahaoboy/is-admin |
| repository | https://github.com/ahaoboy/is-admin |
| max_upload_size | |
| id | 1515685 |
| size | 11,312 |
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())
}