Skip to content

Commit

Permalink
Update installation instructions in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Dec 21, 2022
1 parent 5374aea commit 3727f07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tokio-graceful-shutdown"
authors = ["Finomnis <finomnis@gmail.com>"]
version = "0.12.0"
version = "0.12.1"
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 3727f07

Please sign in to comment.