Update deps

This commit is contained in:
Vincent Prouillet 2024-05-09 23:24:56 +02:00 committed by Vincent Prouillet
parent 6a2b890545
commit 81db65def8
3 changed files with 1227 additions and 665 deletions

1872
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -7,10 +7,11 @@ use config::Config;
use errors::{anyhow, Context, Result};
use libs::ahash::{HashMap, HashSet};
use libs::image::imageops::FilterType;
use libs::image::{EncodableLayout, ImageOutputFormat};
use libs::image::{EncodableLayout, ImageFormat};
use libs::rayon::prelude::*;
use libs::{image, webp};
use serde::{Deserialize, Serialize};
use libs::image::codecs::jpeg::JpegEncoder;
use utils::fs as ufs;
use crate::format::Format;
@ -55,10 +56,11 @@ impl ImageOp {
match self.format {
Format::Png => {
img.write_to(&mut buffered_f, ImageOutputFormat::Png)?;
img.write_to(&mut buffered_f, ImageFormat::Png)?;
}
Format::Jpeg(q) => {
img.write_to(&mut buffered_f, ImageOutputFormat::Jpeg(q))?;
let mut encoder = JpegEncoder::new_with_quality(&mut buffered_f, q);
encoder.encode_image(&img)?;
}
Format::WebP(q) => {
let encoder = webp::Encoder::from_image(&img)

View file

@ -5,25 +5,25 @@ edition = "2021"
[dependencies]
ahash = "0.8"
ammonia = "3"
ammonia = "4"
atty = "0.2.11"
base64 = "0.21"
base64 = "0.22"
csv = "1"
elasticlunr-rs = { version = "3.0.2", features = ["da", "no", "de", "du", "es", "fi", "fr", "hu", "it", "pt", "ro", "ru", "sv", "tr"] }
filetime = "0.2"
gh-emoji = "1"
glob = "0.3"
globset = "0.4"
image = "0.24"
image = "0.25"
lexical-sort = "0.3"
minify-html = "0.11"
minify-html = "0.15"
nom-bibtex = "0.5"
num-format = "0.4"
once_cell = "1"
percent-encoding = "2"
pulldown-cmark = { version = "0.10", default-features = false, features = ["html", "simd"] }
pulldown-cmark-escape = { version = "0.10", default-features = false }
quickxml_to_serde = "0.5"
quickxml_to_serde = "0.6"
rayon = "1"
regex = "1"
relative-path = "1"
@ -43,7 +43,7 @@ unic-langid = "0.9"
unicode-segmentation = "1.2"
url = "2"
walkdir = "2"
webp = "0.2"
webp = "0.3"
[features]