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

#80 in Unix APIs

Download history 13407/week @ 2024-06-24 11637/week @ 2024-07-01 11253/week @ 2024-07-08 11000/week @ 2024-07-15 11334/week @ 2024-07-22 13441/week @ 2024-07-29 14406/week @ 2024-08-05 13248/week @ 2024-08-12 15813/week @ 2024-08-19 15131/week @ 2024-08-26 16255/week @ 2024-09-02 13833/week @ 2024-09-09 12219/week @ 2024-09-16 14411/week @ 2024-09-23 15576/week @ 2024-09-30 14859/week @ 2024-10-07

57,857 downloads per month
Used in 4 crates (2 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