Skip to content

Commit

Permalink
Fix jpeg rayon panic
Browse files Browse the repository at this point in the history
  • Loading branch information
H0neyBadger committed May 14, 2022
1 parent fd25b4d commit c57a281
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build: node_modules
node_modules: leaf/pkg package.json
npm install

leaf/pkg: leaf/src/*.rs
leaf/pkg: leaf/src/*.rs leaf/Cargo.toml
cd leaf && wasm-pack build --target web

clean:
Expand Down
26 changes: 20 additions & 6 deletions leaf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,30 @@ crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = "0.2"
console_error_panic_hook = "0.1.7"
kamadak-exif = "0.5.4"
qrcode-generator = "4.1.6"
console_error_panic_hook = "0.1"
kamadak-exif = "0.5"
qrcode-generator = "4.1"
# image = "0.24.2"
imageproc = "0.23.0"
imageproc = {version = "0.23", default-features = false}

[dependencies.image]
version = "0.24.2"
version = "0.24"
default-features = false
features = ["gif", "jpeg", "ico", "png", "pnm", "tga", "tiff", "webp", "bmp", "hdr", "dxt", "dds", "farbfeld"]
features = [
"gif",
"jpeg",
"ico",
"png",
"pnm",
"tga",
"tiff",
"webp",
"bmp",
"hdr",
"dxt",
"dds",
"farbfeld",
]

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

0 comments on commit c57a281

Please sign in to comment.