From c05e4998c2532d62ee8a05a7fd4d3f22237c0466 Mon Sep 17 00:00:00 2001 From: "Ifiok Jr." Date: Wed, 25 Sep 2024 17:22:05 +0400 Subject: [PATCH] fix: set msrv to`1.70` supporting `once_cell` in `validator` --- .github/workflows/ci.yml | 4 ++-- Cargo.toml | 2 +- src/package_json.rs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96c4f92..26a3973 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: runs-on: ubuntu-24.04 strategy: matrix: - version: ["1.63", stable, nightly] + version: ["1.70", stable, nightly] env: RUSTUP_TOOLCHAIN: ${{ matrix.version }} steps: @@ -107,7 +107,7 @@ jobs: runs-on: ubuntu-24.04 strategy: matrix: - version: ["1.63", stable, nightly] + version: ["1.70", stable, nightly] env: RUSTUP_TOOLCHAIN: ${{ matrix.version }} steps: diff --git a/Cargo.toml b/Cargo.toml index 2f0a4a7..f7c1256 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["schema", "package", "npm", "node", "json"] license = "Unlicense" readme = "readme.md" repository = "https://github.com/ifiokjr/package_json_schema" -rust-version = "1.63" +rust-version = "1.70" description = "Parse content from `package.json` content and consume the result as a `PackageJson` struct." [lib] diff --git a/src/package_json.rs b/src/package_json.rs index 663405e..5961716 100644 --- a/src/package_json.rs +++ b/src/package_json.rs @@ -9,6 +9,7 @@ use serde::Serialize; use serde_json::Value; use typed_builder::TypedBuilder; + cfg_if! { if #[cfg(feature = "validate")] { use validator::Validate;