Skip to content

Commit

Permalink
readme: add cargo.toml dependencies section info
Browse files Browse the repository at this point in the history
  • Loading branch information
bretello authored and Detegr committed Jul 18, 2023
1 parent 560d58c commit f9bd243
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ A simple easy to use wrapper around Ctrl-C signal.
[Documentation](http://detegr.github.io/doc/ctrlc/)

## Example usage

In `cargo.toml`:

```toml
[dependencies]
ctrlc = "3.4.0"
```

then, in `main.rs`

```rust
use std::sync::mpsc::channel;
use ctrlc;
Expand Down

0 comments on commit f9bd243

Please sign in to comment.