From 9d8ce5e4eea4d3ae18b5d514560d2b4d598e15d5 Mon Sep 17 00:00:00 2001 From: Josh Holmer Date: Thu, 20 Jun 2019 13:38:59 -0400 Subject: [PATCH 1/3] Disable large image test for 32-bit systems Closes #176 --- tests/regression.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/regression.rs b/tests/regression.rs index a8dbe045..ef7ee0bf 100644 --- a/tests/regression.rs +++ b/tests/regression.rs @@ -600,6 +600,7 @@ fn issue_159() { } #[test] +#[cfg(target_pointer_width = "64")] fn issue_167() { test_it_converts( "tests/files/issue-167.png", From c60bd82da7d9bb4f1c4ae07b713841f703fefe8b Mon Sep 17 00:00:00 2001 From: Josh Holmer Date: Thu, 20 Jun 2019 14:07:47 -0400 Subject: [PATCH 2/3] Add test case for #171 --- tests/files/issue-171.png | Bin 0 -> 220 bytes tests/regression.rs | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/files/issue-171.png diff --git a/tests/files/issue-171.png b/tests/files/issue-171.png new file mode 100644 index 0000000000000000000000000000000000000000..bf83f52be504d4ff57a56396f1b1d42496a2f45a GIT binary patch literal 220 zcmeAS@N?(olHy`uVBq!ia0vp^EFjDQBp7;T9b5$Bq&xaLGB9lH=l+w(3gj~-dAqwX z{BQ3+vmeM~FY)wsWq-^jB50yBLvz7)ppby4i(?4K^<o#Nn literal 0 HcmV?d00001 diff --git a/tests/regression.rs b/tests/regression.rs index ef7ee0bf..1b20edee 100644 --- a/tests/regression.rs +++ b/tests/regression.rs @@ -611,3 +611,15 @@ fn issue_167() { BitDepth::Eight, ); } + +#[test] +fn issue_171() { + test_it_converts( + "tests/files/issue-171.png", + None, + ColorType::Grayscale, + BitDepth::Eight, + ColorType::Grayscale, + BitDepth::Eight, + ); +} From 5b5aeaa68384b885a7e96b5fe10fa2522744f12d Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 26 Jun 2019 15:09:26 +0200 Subject: [PATCH 3/3] Enable link-time optimization for release builds (#177) This creates faster and smaller binaries, at the cost of longer build times. --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5c24e963..5a71b928 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,3 +70,5 @@ name = "oxipng" path = "src/lib.rs" [profile.dev] opt-level = 2 +[profile.release] +lto = true