rust-ape-example/src/bin/std_misc_process.rs
2022-09-07 10:49:49 +05:30

27 lines
560 B
Rust

// ./src/std_misc/process.md
use std::process::Command;
/*
fn part0() {
let output = Command::new("rustc")
.arg("--version")
.output().unwrap_or_else(|e| {
panic!("failed to execute process: {}", e)
});
if output.status.success() {
let s = String::from_utf8_lossy(&output.stdout);
print!("rustc succeeded and stdout was:\n{}", s);
} else {
let s = String::from_utf8_lossy(&output.stderr);
print!("rustc failed and stderr was:\n{}", s);
}
}*/
pub fn main() {
// part0();
}