Expand description
Process spawning utilities with consistent cross-platform behaviour.
On Windows, every child process created with std::process::Command::new
inherits a new console window unless CREATE_NO_WINDOW is explicitly set.
The windows_subsystem = "windows" attribute on the main binary only
suppresses the window for the main process — not any child processes.
Use cmd and async_cmd instead of Command::new at every call site.
The Windows-specific flag is applied here and nowhere else.
Functions§
- async_
cmd - Create a [
tokio::process::Command] that will not open a console window on Windows. - cmd
- Create a
std::process::Commandthat will not open a console window on Windows.