Skip to content

Commit

Permalink
Bump oxipng from 6.0.0 -> 8.0.0 (#9135)
Browse files Browse the repository at this point in the history
This fixes an issue building for aarch64-unknown-linux-musl - where a
C dependency of oxipng was failing to compile. The latest version does
not use this dependency.
  • Loading branch information
marcins committed Jul 18, 2023
1 parent 631d280 commit 2d2400d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 52 deletions.
96 changes: 47 additions & 49 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/optimizers/image/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]
[dependencies]
napi = {version = "2.12.6", features = ["napi4", "compat-mode"]}
napi-derive = "2.12.5"
oxipng = "6.0.0"
oxipng = "8.0.0"
mozjpeg-sys = "1.0.0"
libc = "0.2"

Expand Down
3 changes: 1 addition & 2 deletions packages/optimizers/image/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use mozjpeg_sys::*;
use napi::bindgen_prelude::*;
use napi::{Env, Error, JsBuffer, Result};
use napi_derive::napi;
use oxipng::{optimize_from_memory, Deflaters, Headers, Options};
use oxipng::{optimize_from_memory, Headers, Options};
use std::mem;
use std::ptr;
use std::slice;
Expand All @@ -14,7 +14,6 @@ pub fn optimize(kind: String, buf: Buffer, env: Env) -> Result<JsBuffer> {
match kind.as_ref() {
"png" => {
let options = Options {
deflate: Deflaters::Libdeflater,
strip: Headers::Safe,
..Default::default()
};
Expand Down

0 comments on commit 2d2400d

Please sign in to comment.