cargo_version/
cargo-version.rs

1use printable_shell_command::{PrintableShellCommand, ShellPrintable};
2
3fn main() {
4    assert!(
5        PrintableShellCommand::new("cargo")
6            .arg("--version")
7            .print_invocation()
8            .unwrap()
9            .status()
10            .unwrap()
11            .success(),
12    );
13}