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

#88 in Unix APIs

Download history 12245/week @ 2024-09-13 13759/week @ 2024-09-20 15238/week @ 2024-09-27 15544/week @ 2024-10-04 15875/week @ 2024-10-11 15632/week @ 2024-10-18 15334/week @ 2024-10-25 16343/week @ 2024-11-01 14074/week @ 2024-11-08 15641/week @ 2024-11-15 16193/week @ 2024-11-22 16009/week @ 2024-11-29 17530/week @ 2024-12-06 18454/week @ 2024-12-13 9533/week @ 2024-12-20 15874/week @ 2024-12-27

65,110 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–15MB
~145K SLoC