diff --git a/build.rs b/build.rs index 653cae7..3ee44a4 100644 --- a/build.rs +++ b/build.rs @@ -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")