runas

Crates.iorunas
lib.rsrunas
version1.2.0
sourcesrc
created_at2016-06-15 19:08:45.453434
updated_at2024-02-20 12:15:12.190882
descriptionRun a command as root (sudo)
homepagehttps://github.com/mitsuhiko/rust-runas
repository
max_upload_size
id5388
size31,759
Armin Ronacher (mitsuhiko)

documentation

README

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();

License and Links

Commit count: 0

cargo fmt