a package to execute and log system commands

14 releases

new 0.0.14 Aug 1, 2020
0.0.13 Aug 1, 2020
0.0.7 Jul 17, 2020
0.0.5 Jun 26, 2020

#139 in Operating systems

Download history 24/week @ 2020-06-14 93/week @ 2020-06-21 15/week @ 2020-06-28 6/week @ 2020-07-05 26/week @ 2020-07-12 16/week @ 2020-07-19 54/week @ 2020-07-26

87 downloads per month


342 lines


Reef crate Reef documentation

library to support executing system commands


Reef is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE-APACHE and LICENSE-MIT for details. Opening a pull requests is assumed to signal agreement with these licensing terms.


This crate provides a library for executing system commands.


This crate is on crates.io and can be used by adding reef to your dependencies in your project's Cargo.toml.

reef = "0"

If you're using Rust 2015, then you'll also need to add it to your crate root:

extern crate reef;

Example: execute a command that is in the system PATH

note: git must be available in the system PATH for this example to work.

use reef::Command;
let git_version = Command::new("git --version",&std::env::temp_dir()).exec().unwrap();
assert!(git_version.stdout().contains("git version"));


~101K SLoC