Question : exit program rust
Answered by : maou-shimazu
// windows
std::process::exit(0) // 0 for pass exit, and any other value for failure
// linux
std::process::exit(0x0100); // 0x0100 is 0 on linux but 256 on windows
Source : | Last Update : Fri, 25 Mar 22