diff --git a/Cargo.toml b/Cargo.toml index 2b1533b..4aab1c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tokio-graceful-shutdown" authors = ["Finomnis "] -version = "0.12.0" +version = "0.12.1" edition = "2018" license = "MIT OR Apache-2.0" readme = "README.md" diff --git a/README.md b/README.md index e9185f3..b5445da 100644 --- a/README.md +++ b/README.md @@ -61,13 +61,12 @@ Further examples can be seen in the [**examples**](https://github.com/Finomnis/t ## Building -To use this library in your project, add the following to the `[dependencies]` section of `Cargo.toml`: -```toml -[dependencies] -tokio-graceful-shutdown = "0.11" +To use this library in your project, enter your project directory and run: +```bash +cargo add tokio-graceful-shutdown ``` -To run one of the examples (here `01_normal_shutdown.rs`), simply enter the repository folder and execute: +To run one of the examples (here `01_normal_shutdown.rs`), simply clone the [tokio-graceful-shutdown repository](https://github.com/Finomnis/tokio-graceful-shutdown), enter the repository folder and execute: ```bash cargo run --example 01_normal_shutdown ```