| Crates.io | run-as |
| lib.rs | run-as |
| version | 1.2.5 |
| created_at | 2025-08-30 14:15:48.765077+00 |
| updated_at | 2025-09-04 08:41:06.830554+00 |
| description | Run a command as root (sudo), fork from runas crate |
| homepage | https://github.com/ssrlive/run-as |
| repository | |
| max_upload_size | |
| id | 1817653 |
| size | 63,840 |
This crate is a fork of runas
A simple Rust library that can execute commands as root.
use run_as::Command;
let status = Command::new("rm")
.arg("/usr/local/my-app")
.status()
.unwrap();