2016-09-06 23:00:17 -07:00
|
|
|
# tokio-signal
|
|
|
|
|
|
|
|
|
|
An implementation of Unix signal handling for Tokio
|
|
|
|
|
|
|
|
|
|
[](https://travis-ci.org/alexcrichton/tokio-signal)
|
|
|
|
|
|
2017-01-12 10:32:16 -08:00
|
|
|
[Documentation](https://docs.rs/tokio-signal)
|
2016-09-06 23:00:17 -07:00
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
First, add this to your `Cargo.toml`:
|
|
|
|
|
|
|
|
|
|
```toml
|
|
|
|
|
[dependencies]
|
2017-01-12 10:32:16 -08:00
|
|
|
tokio-signal = "0.1"
|
2016-09-06 23:00:17 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Next, add this to your crate:
|
|
|
|
|
|
|
|
|
|
```rust
|
|
|
|
|
extern crate tokio_signal;
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# License
|
|
|
|
|
|
|
|
|
|
`tokio-signal` is primarily distributed under the terms of both the MIT
|
|
|
|
|
license and the Apache License (Version 2.0), with portions covered by various
|
|
|
|
|
BSD-like licenses.
|
|
|
|
|
|
|
|
|
|
See LICENSE-APACHE, and LICENSE-MIT for details.
|
|
|
|
|
|
|
|
|
|
|