send_ctrlc
A cross platform crate for sending ctrl-c to child processes
Install
cargo add send_ctrlc
# Or for async/tokio:
cargo add send_ctrlc -F tokio
Features
- Cross platform (including Windows)
- Uniform cross platform API
- Both sync and async
- Minimal dependencies:
- Synchronous:
libcon unix, andwindows-syson windows - Asynchronous:
tokio(with onlyprocessfeature)
- Synchronous:
Examples
use ;
// Synchronous...
// or asynchronous...
async
Contributions
Contributions are welcome as long they align with the vision for this crate.