Skip to content

Commit

Permalink
Cargo.toml: specify minimum rust version
Browse files Browse the repository at this point in the history
This field causes cargo to automatically verify that a recent enough
rustc version is being used. For cargo versions before 1.56, adding this
option creates a build warning - from [0]:

> The first version of Cargo that supports this field was released with Rust
> 1.56.0. In older releases, the field will be ignored, and Cargo will display
> a warning.

[0]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field
  • Loading branch information
Xiretza authored and Geal committed Mar 14, 2022
1 parent 1819d78 commit c19f939
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ categories = ["parsing"]
edition = "2018"
autoexamples = false

# also update in README.md (badge and "Rust version requirements" section)
rust-version = "1.48"

include = [
"CHANGELOG.md",
"LICENSE",
Expand Down

0 comments on commit c19f939

Please sign in to comment.