()
| 59 | } |
| 60 | |
| 61 | fn rustc_version() -> String { |
| 62 | let rustc = env::var_os("RUSTC").unwrap_or_else(|| "rustc".into()); |
| 63 | command(rustc, &["-V"]) |
| 64 | } |
| 65 | |
| 66 | fn command(cmd: impl AsRef<std::ffi::OsStr>, args: &[&str]) -> String { |
| 67 | match Command::new(cmd).args(args).output() { |