From b678973ef0f406c75210f1491b8ab3df25f6fa2c Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Mon, 7 Dec 2020 23:06:50 -0800 Subject: [PATCH] Hand-picked subset of image features --- Cargo.lock | 20 -------------------- Cargo.toml | 6 +++++- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8c254b8..68d36f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1174,8 +1174,6 @@ dependencies = [ "num-rational", "num-traits", "png", - "scoped_threadpool", - "tiff", ] [[package]] @@ -1239,7 +1237,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc797adac5f083b8ff0ca6f6294a999393d76e197c36488e2ef732c4715f6fa3" dependencies = [ "byteorder", - "rayon", ] [[package]] @@ -2311,12 +2308,6 @@ dependencies = [ "parking_lot 0.11.1", ] -[[package]] -name = "scoped_threadpool" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8" - [[package]] name = "scopeguard" version = "1.1.0" @@ -2676,17 +2667,6 @@ dependencies = [ "lazy_static", ] -[[package]] -name = "tiff" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abeb4e3f32a8973722c0254189e6890358e72b1bf11becb287ee0b23c595a41d" -dependencies = [ - "jpeg-decoder", - "miniz_oxide 0.4.3", - "weezl", -] - [[package]] name = "time" version = "0.1.44" diff --git a/Cargo.toml b/Cargo.toml index 8fe4e19..c3f62b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,6 @@ diesel = { version = "1.4.4", features = ["sqlite", "r2d2"] } diesel_migrations = { version = "1.4", features = ["sqlite"] } getopts = "0.2.15" id3 = "0.5.1" -image = "0.23.4" libsqlite3-sys = { version = "0.16", features = ["bundled-windows"] } rustfm-scrobble = "^1" lewton = "0.10.1" @@ -43,6 +42,11 @@ time = "0.1" toml = "0.5" url = "2.1" +[dependencies.image] +version = "0.23.12" +default_features = false +features = ["bmp", "gif", "jpeg", "png"] + [dependencies.rocket_contrib] version = "0.4.5" default_features = false