Skip to content

Commit

Permalink
update README.md to reflect rust-version in cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
hellow554 committed Jun 9, 2022
1 parent 8612d03 commit 3801b2e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@ specifying the minimum supported Rust version (MSRV) in the clippy configuration
msrv = "1.30.0"
```

Alternatively, the [`rust-version` field](https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field)
in the `Cargo.toml` can be used.

```toml
rust-version = "1.30"
```

The MSRV can also be specified as an inner attribute, like below.

```rust
Expand Down

0 comments on commit 3801b2e

Please sign in to comment.