Easy Ctrl-C handler for Rust projects, allowing graceful shutdown on SIGINT.
# Cargo.toml
[dependencies]
ctrlc = "3.5.2"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets a Ctrl-C handler that prints a message and exits.
Use only simple operations like setting a flag or printing to stderr; consider using `std::sync::atomic` for communication.
No dependency data recorded yet.