mirror of
https://github.com/bytedream/serde-inline-default.git
synced 2026-08-04 21:10:40 +02:00
chore: add msrv
This commit is contained in:
+23
-14
@@ -12,24 +12,33 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Generate cargo lockfile
|
- name: Setup Rust
|
||||||
run: cargo generate-lockfile
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
- name: Cargo cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
with:
|
||||||
path: |
|
toolchain: stable
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
target/
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
|
||||||
|
verify-msrv:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Setup Rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
|
||||||
|
- name: Install cargo-msrv
|
||||||
|
uses: taiki-e/install-action@v2
|
||||||
|
with:
|
||||||
|
tool: cargo-msrv
|
||||||
|
|
||||||
|
- name: Verify msrv
|
||||||
|
run: cargo msrv verify --all-features
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ name = "serde-inline-default"
|
|||||||
version = "1.0.1"
|
version = "1.0.1"
|
||||||
authors = ["bytedream"]
|
authors = ["bytedream"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
rust-version = "1.71.0"
|
||||||
description = "Serde default values via inline declaration"
|
description = "Serde default values via inline declaration"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/bytedream/serde-inline-default"
|
repository = "https://github.com/bytedream/serde-inline-default"
|
||||||
|
|||||||
Reference in New Issue
Block a user