From f9bd243419a827700b5569511f0f8df42883723b Mon Sep 17 00:00:00 2001 From: bretello Date: Sun, 16 Jul 2023 12:58:24 +0200 Subject: [PATCH] readme: add cargo.toml dependencies section info --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 4887045..c75f87e 100644 --- a/README.md +++ b/README.md @@ -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;