10 releases (3 stable)

1.2.0 Feb 20, 2024
1.1.0 May 15, 2023
1.0.0 Feb 7, 2023
0.2.1 Feb 12, 2020
0.1.0 Jun 15, 2016

#94 in Unix APIs

Download history 14204/week @ 2024-08-17 15846/week @ 2024-08-24 16377/week @ 2024-08-31 14426/week @ 2024-09-07 11965/week @ 2024-09-14 14247/week @ 2024-09-21 15396/week @ 2024-09-28 15902/week @ 2024-10-05 15843/week @ 2024-10-12 15663/week @ 2024-10-19 14891/week @ 2024-10-26 16811/week @ 2024-11-02 14038/week @ 2024-11-09 15925/week @ 2024-11-16 14270/week @ 2024-11-23 14937/week @ 2024-11-30

62,182 downloads per month
Used in 5 crates (3 directly)

Apache-2.0

14KB
277 lines

runas

Build Status Crates.io License rustc 1.56.0 Documentation

A simple Rust library that can execute commands as root.

use runas::Command;

let status = Command::new("rm")
    .arg("/usr/local/my-app")
    .status()
    .unwrap();

Dependencies

~2–11MB
~133K SLoC