1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
macro_rules! bin {
($bin:expr) => {{
#[cfg(not(target_os = "windows"))]
let bin = $bin;
#[cfg(target_os = "windows")]
let bin = concat!($bin, ".exe");
bin
}};
}
macro_rules! bat {
($bat:expr) => {{
#[cfg(not(target_os = "windows"))]
let bat = $bat;
#[cfg(target_os = "windows")]
let bat = concat!($bat, ".bat");
bat
}};
}
#[cfg(target_os = "windows")]
pub const EXECUTABLE_SUFFIX_BAT: &str = ".bat";
#[cfg(not(target_os = "windows"))]
pub const EXECUTABLE_SUFFIX_BAT: &str = "";
pub mod commands;
pub mod error;
pub mod types;