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 28, 2022
1 parent 81737bf commit 83511d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ 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
# Cargo.toml
rust-version = "1.30"
```

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

```rust
Expand Down

0 comments on commit 83511d1

Please sign in to comment.