Update build.rs

This commit is contained in:
o69mar 2023-03-05 21:52:33 +03:00 committed by GitHub
parent 0dc49ba56a
commit 5abe4378c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -1,8 +1,13 @@
use std::{
os::unix::process::ExitStatusExt,
os::windows::process::ExitStatusExt,
process::{Command, ExitStatus, Output},
};
#[cfg(not(target_os = "windows"))]
use std::os::unix::process::ExitStatusExt;
#[cfg(target_os = "windows")]
use std::os::windows::process::ExitStatusExt;
fn main() {
let output = String::from_utf8(
Command::new("git")