d68f003000
CI / Change detection (push) Has been cancelled
CI / Version drift (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Workflow RLM cache (push) Has been cancelled
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / npm wrapper smoke (push) Has been cancelled
CI / Mobile runtime smoke (push) Has been cancelled
CI / Workflow lint (push) Has been cancelled
CI / Documentation (push) Has been cancelled
Web Frontend / Lint & Type Check (push) Failing after 1s
Auto-close harvested PRs / close (push) Failing after 1s
cargo-deny / cargo-deny (bans licenses sources) (push) Failing after 1s
Security audit / cargo-audit (push) Failing after 1s
Sync to CNB / sync (push) Failing after 1s
cargo-deny / cargo-deny (advisories) (push) Failing after 3s
Web Frontend / Deploy to Cloudflare (push) Has been cancelled
19 lines
707 B
Rust
19 lines
707 B
Rust
#[global_allocator]
|
|
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
|
|
|
fn main() -> std::process::ExitCode {
|
|
// Reset SIGPIPE to SIG_DFL so piping codewhale output into a command that
|
|
// exits early (e.g. `codewhale doctor | head`) terminates the process
|
|
// cleanly with exit code 141 instead of panicking on the broken-pipe
|
|
// write. Many execution environments (systemd, Docker, some shells)
|
|
// inherit SIGPIPE set to SIG_IGN, which makes write(2) return EPIPE;
|
|
// Rust's `println!` then treats that io::Error as fatal and panics.
|
|
// See issue #4030.
|
|
#[cfg(unix)]
|
|
unsafe {
|
|
libc::signal(libc::SIGPIPE, libc::SIG_DFL);
|
|
}
|
|
|
|
codewhale_cli::run_cli()
|
|
}
|