Skip to content

Commit

Permalink
Specify the MSRV in the Cargo.toml
Browse files Browse the repository at this point in the history
This will be stabilized with Rust 1.56, see
* rust-lang/rust#65262
* rust-lang/cargo#9732

For older cargo versions, this will print a warning, but will not fail
the build/check/test.
  • Loading branch information
jonasbb committed Oct 4, 2021
1 parent 5d0f9b6 commit 40df050
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ jobs:
os: ["ubuntu-latest", "windows-latest"]
# It is good to test more than the MSRV and stable since sometimes
# breakage occurs in intermediate versions.
rust: ["1.46", "1.50", "stable", "beta", "nightly"]
# IMPORTANT: Synchronize the MSRV with the Cargo.toml values.
rust: ["1.46", "1.50", "1.55", "stable", "beta", "nightly"]
crate: ["serde_with", "serde_with_macros", "serde_with_test"]
runs-on: ${{ matrix.os }}
steps:
Expand Down
1 change: 1 addition & 0 deletions serde_with/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ authors = [
]
name = "serde_with"
version = "1.10.0"
rust-version = "1.46"

categories = ["encoding"]
description = "Custom de/serialization functions for Rust's serde"
Expand Down
1 change: 1 addition & 0 deletions serde_with_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
authors = ["Jonas Bushart"]
name = "serde_with_macros"
version = "1.5.0"
rust-version = "1.46"

categories = ["encoding"]
description = "proc-macro library for serde_with"
Expand Down
1 change: 1 addition & 0 deletions serde_with_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ edition = "2018"
name = "serde_with_test"
publish = false
version = "0.0.0"
rust-version = "1.46"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit 40df050

Please sign in to comment.