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;