mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 00:37:19 +00:00
Trying out more
This commit is contained in:
3
codecs/visdif/Cargo.lock
generated
3
codecs/visdif/Cargo.lock
generated
@@ -85,8 +85,6 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "dssim-core"
|
name = "dssim-core"
|
||||||
version = "2.11.3"
|
version = "2.11.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "462c6cf1cb98d8f7dc5f7a5878e9f05e6be51086370f7f162e446a62ebfab0cb"
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"imgref",
|
"imgref",
|
||||||
"itertools",
|
"itertools",
|
||||||
@@ -281,7 +279,6 @@ dependencies = [
|
|||||||
"console_error_panic_hook",
|
"console_error_panic_hook",
|
||||||
"dssim-core",
|
"dssim-core",
|
||||||
"imgref",
|
"imgref",
|
||||||
"rayon-core",
|
|
||||||
"rgb",
|
"rgb",
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
"wasm-bindgen-test",
|
"wasm-bindgen-test",
|
||||||
|
|||||||
@@ -15,10 +15,11 @@ default = ["console_error_panic_hook", "wee_alloc"]
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
cfg-if = "0.1.2"
|
cfg-if = "0.1.2"
|
||||||
wasm-bindgen = "0.2.38"
|
wasm-bindgen = "0.2.38"
|
||||||
dssim-core = "2.11.3"
|
|
||||||
imgref = "1.7.0"
|
imgref = "1.7.0"
|
||||||
rgb = "0.8.24"
|
rgb = "0.8.24"
|
||||||
rayon-core = "1.7.1"
|
#rayon-core = "1.7.1"
|
||||||
|
|
||||||
|
|
||||||
# The `console_error_panic_hook` crate provides better debugging of panics by
|
# The `console_error_panic_hook` crate provides better debugging of panics by
|
||||||
# logging them with `console.error`. This is great for development, but requires
|
# logging them with `console.error`. This is great for development, but requires
|
||||||
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
|
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
|
||||||
@@ -32,10 +33,10 @@ console_error_panic_hook = { version = "0.1.1", optional = true }
|
|||||||
# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
|
# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
|
||||||
wee_alloc = { version = "0.4.2", optional = true }
|
wee_alloc = { version = "0.4.2", optional = true }
|
||||||
|
|
||||||
#[dependencies.dssim]
|
[dependencies.dssim-core]
|
||||||
#path = "/Users/surma/src/github.com/kornelski/dssim"
|
path = "/Users/surma/src/github.com/kornelski/dssim/dssim-core"
|
||||||
|
# Shim rayon API
|
||||||
#dssim = "2.11.2"
|
default-features = false
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
wasm-bindgen-test = "0.2"
|
wasm-bindgen-test = "0.2"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use wasm_bindgen::prelude::*;
|
|||||||
use dssim_core::{Dssim, ToRGBAPLU};
|
use dssim_core::{Dssim, ToRGBAPLU};
|
||||||
use imgref;
|
use imgref;
|
||||||
use rgb::FromSlice;
|
use rgb::FromSlice;
|
||||||
use rayon_core;
|
//use rayon_core;
|
||||||
|
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user