Skip to main content

aster/
subprocess.rs

1use tokio::process::Command;
2
3#[cfg(windows)]
4const CREATE_NO_WINDOW_FLAG: u32 = 0x08000000;
5
6#[allow(unused_variables)]
7pub fn configure_command_no_window(command: &mut Command) {
8    #[cfg(windows)]
9    command.creation_flags(CREATE_NO_WINDOW_FLAG);
10}