From 2f654c607d9003413ef8c1edfdc7b884f4229715 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Sat, 10 Aug 2024 13:06:50 +0200 Subject: [PATCH] Update bytes (yanked), handlebars, and directly depend on semver --- CHANGELOG.md | 3 +++ Cargo.lock | 9 +++++---- Cargo.toml | 4 +++- src/licenses/workarounds/ring.rs | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cacb1d..b225c7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] - ReleaseDate +### Changed +- [PR#251](https://github.com/EmbarkStudios/cargo-about/pull/248) updated crates and directly depend on `semver`. + ## [0.6.2] - 2024-05-31 ### Changed - [PR#248](https://github.com/EmbarkStudios/cargo-about/pull/248) updated crates. diff --git a/Cargo.lock b/Cargo.lock index 08a07ab..8be040e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -197,9 +197,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.6.0" +version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" +checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50" [[package]] name = "camino" @@ -235,6 +235,7 @@ dependencies = [ "rayon", "reqwest", "ring", + "semver", "serde", "serde_json", "spdx", @@ -641,9 +642,9 @@ dependencies = [ [[package]] name = "handlebars" -version = "5.1.2" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d08485b96a0e6393e9e4d1b8d48cf74ad6c063cd905eb33f42c1ce3f0377539b" +checksum = "5226a0e122dc74917f3a701484482bed3ee86d016c7356836abbaa033133a157" dependencies = [ "log", "pest", diff --git a/Cargo.toml b/Cargo.toml index a002527..690fa22 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,7 @@ codespan-reporting = "0.11" # Logging helpers fern = "0.6" # Template engine for output -handlebars = { version = "5.1", features = ["dir_source"] } +handlebars = { version = "6.0", features = ["dir_source"] } # $HOME retrieval home = "0.5" # Directory walking @@ -69,6 +69,8 @@ ring = "0.17" # Oh gee what could it be serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" +# Used for checking version requirements +semver = { version = "1.0", features = ["serde"] } # License expression parsing and evaluation spdx = { version = "0.10", features = ["text"] } # Log timestamps diff --git a/src/licenses/workarounds/ring.rs b/src/licenses/workarounds/ring.rs index 4478ca4..ef2314d 100644 --- a/src/licenses/workarounds/ring.rs +++ b/src/licenses/workarounds/ring.rs @@ -1,6 +1,6 @@ use super::ClarificationFile; use anyhow::Context as _; -use krates::cm::semver::Version; +use semver::Version; pub fn get(krate: &crate::Krate) -> anyhow::Result> { if krate.name != "ring" {