Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set MSRV in Cargo.toml to 1.58.1 #116

Merged
merged 3 commits into from Feb 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -73,3 +73,24 @@ jobs:
SNAPSHOT_DIR: rust-${{ matrix.toolchain }}
with:
command: test

msrv-build:
name: Build crate with documented MSRV
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Install Rust MSRV version
run: scripts/force-msrv-toolchain.sh

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -12,3 +12,6 @@ Cargo.lock
.idea

*.new

# Ignore toolchain installed by script
rust-toolchain
3 changes: 2 additions & 1 deletion Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "test-case"
version = "3.0.0"
edition = "2018"
edition = "2021"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also bump edition in crates/test-case-macros and crates/test-case-core.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in all crates in the repository.

authors = ["Marcin Sas-Szymanski <marcin.sas-szymanski@anixe.pl>", "Wojciech Polak <frondeus@gmail.com>", "Łukasz Biel <lukasz.p.biel@gmail.com>"]
description = "Provides #[test_case(...)] procedural macro attribute for generating parametrized test cases easily"
keywords = ["test", "case", "tests", "unit", "testing"]
Expand All @@ -11,6 +11,7 @@ license = "MIT"
repository = "https://github.com/frondeus/test-case"
documentation = "https://docs.rs/test-case"
exclude = ["tests/snapshots/**/*"]
rust-version = "1.58.1"

[features]
with-regex = ["regex", "test-case-macros/with-regex"]
Expand Down
2 changes: 1 addition & 1 deletion crates/test-case-core/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "test-case-core"
version = "3.0.0"
edition = "2018"
edition = "2021"
authors = ["Marcin Sas-Szymanski <marcin.sas-szymanski@anixe.pl>", "Wojciech Polak <frondeus@gmail.com>", "Łukasz Biel <lukasz.p.biel@gmail.com>"]
description = "Provides core functionality for parsing #[test_case(...)] procedural macro attribute for generating parametrized test cases easily"
keywords = ["test", "case", "tests", "unit", "testing"]
Expand Down
2 changes: 1 addition & 1 deletion crates/test-case-macros/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "test-case-macros"
version = "3.0.0"
edition = "2018"
edition = "2021"
authors = ["Marcin Sas-Szymanski <marcin.sas-szymanski@anixe.pl>", "Wojciech Polak <frondeus@gmail.com>", "Łukasz Biel <lukasz.p.biel@gmail.com>"]
description = "Provides #[test_case(...)] procedural macro attribute for generating parametrized test cases easily"
keywords = ["test", "case", "tests", "unit", "testing"]
Expand Down
16 changes: 16 additions & 0 deletions scripts/force-msrv-toolchain.sh
@@ -0,0 +1,16 @@
#! /bin/sh
#
# Force the use of the MSRV toolchain (for use with the CI).
# Since action-rs/toolchain@v1 uses rustup 1.21.x, only the
# toolchain name can be given in the file.
#
# If you call this script in your working directory, do not
# forget that it will create a "rust-toolchain" file there.

set -e

root=$(dirname "$0")/..

version=$(sed -ne 's/rust-version *= *"\(.*\)"/\1/p' "$root"/Cargo.toml)
echo $version > "$root"/rust-toolchain
echo "Rust $version installed as the forced toolchain"
Expand Up @@ -2,7 +2,7 @@
name = "async_tests"
version = "0.1.0"
authors = ["Łukasz Biel <lukasz.p.biel@gmail.com>"]
edition = "2018"
edition = "2021"

[lib]
name = "async"
Expand Down
@@ -1,7 +1,7 @@
[package]
name = "cases_can_be_declared_on_non_test_items"
version = "0.1.0"
edition = "2018"
edition = "2021"

[lib]
name = "cases_can_be_declared_on_non_test_items"
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance_cases/cases_can_be_ignored/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "cases_can_be_ignored"
version = "0.1.0"
edition = "2018"
edition = "2021"

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

Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance_cases/cases_can_panic/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "cases_can_panic"
version = "0.1.0"
edition = "2018"
edition = "2021"

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

Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance_cases/cases_can_return_result/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "cases_can_return_result"
version = "0.1.0"
edition = "2018"
edition = "2021"

[lib]
name = "cases_can_return_result"
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance_cases/cases_can_use_regex/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "cases_can_use_regex"
version = "0.1.0"
edition = "2018"
edition = "2021"

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

Expand Down
Expand Up @@ -2,7 +2,7 @@
name = "cases_support_basic_features"
version = "0.1.0"
authors = ["Łukasz Biel <lukasz.p.biel@gmail.com>"]
edition = "2018"
edition = "2021"

[lib]
name = "cases_support_basic_features"
Expand Down
@@ -1,7 +1,7 @@
[package]
name = "cases_support_complex_assertions"
version = "0.1.0"
edition = "2018"
edition = "2021"

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

Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance_cases/cases_support_generics/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "cases_support_generics"
version = "0.1.0"
edition = "2018"
edition = "2021"

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

Expand Down
@@ -1,7 +1,7 @@
[package]
name = "cases_support_keyword_using"
version = "0.1.0"
edition = "2018"
edition = "2021"

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

Expand Down
@@ -1,7 +1,7 @@
[package]
name = "cases_support_keyword_with"
version = "0.1.0"
edition = "2018"
edition = "2021"

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

Expand Down
@@ -1,7 +1,7 @@
[package]
name = "cases_support_multiple_calling_methods"
version = "0.1.0"
edition = "2018"
edition = "2021"

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

Expand Down
@@ -1,7 +1,7 @@
[package]
name = "cases_support_pattern_matching"
version = "0.1.0"
edition = "2018"
edition = "2021"

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

Expand Down
@@ -1,7 +1,7 @@
[package]
name = "features_produce_human_readable_errors"
version = "0.1.0"
edition = "2018"
edition = "2021"

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

Expand Down