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

#84 in Unix APIs

Download history 15675/week @ 2024-10-02 15572/week @ 2024-10-09 16427/week @ 2024-10-16 14904/week @ 2024-10-23 16627/week @ 2024-10-30 14363/week @ 2024-11-06 15350/week @ 2024-11-13 16782/week @ 2024-11-20 14096/week @ 2024-11-27 18078/week @ 2024-12-04 19072/week @ 2024-12-11 13064/week @ 2024-12-18 17057/week @ 2024-12-25 11679/week @ 2025-01-01 15241/week @ 2025-01-08 12168/week @ 2025-01-15

57,571 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–16MB
~156K SLoC