https://github.com/shellrow/privilege
Cross-platform library for administrative permission handling. Written in Rust.
https://github.com/shellrow/privilege
Last synced: about 1 year ago
JSON representation
Cross-platform library for administrative permission handling. Written in Rust.
- Host: GitHub
- URL: https://github.com/shellrow/privilege
- Owner: shellrow
- License: mit
- Created: 2023-06-10T05:40:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-06T08:47:28.000Z (almost 3 years ago)
- Last Synced: 2025-04-20T00:55:34.699Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[crates-badge]: https://img.shields.io/crates/v/privilege.svg
[crates-url]: https://crates.io/crates/privilege
[license-badge]: https://img.shields.io/crates/l/privilege.svg
[examples-url]: https://github.com/shellrow/privilege/tree/main/examples
# privilege [![Crates.io][crates-badge]][crates-url] ![License][license-badge]
Cross-platform library for administrative permission handling.
## Features
- Check Administrative Permissions: Easily determine if the current process has administrative or root permissions.
- Execute Commands with Administrative Privileges: Run commands with elevated permissions, ensuring secure and proper execution of critical operations.
## Supported platform
- Linux
- macOS
- Windows
## Usage
Add `privilege` to your dependencies
```toml:Cargo.toml
[dependencies]
privilege = "0.3"
```
For more details, see [examples][examples-url] or doc.