Bug 1542826 - Reduce featureset enabled on image crate. r=gw
☠☠ backed out by cffeafe28a45 ☠ ☠
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 23 Apr 2019 19:55:06 +0000
changeset 470547 7df230ea51228062b25e0349512eb0471b582b8a
parent 470546 a19d696f96fbf2375fbf3cf107a3d974262a7d5e
child 470548 314f9bc7dafe4595e64f5412c7bcac5b757da465
push id35908
push useraciure@mozilla.com
push dateWed, 24 Apr 2019 04:28:40 +0000
treeherdermozilla-central@c9f0730a57a6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgw
bugs1542826
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1542826 - Reduce featureset enabled on image crate. r=gw The debugger in WebRender uses the image crate to generate PNGs, and so it only really needs the png codec feature from the image crate. Differential Revision: https://phabricator.services.mozilla.com/D28351
gfx/wr/webrender/Cargo.toml
--- a/gfx/wr/webrender/Cargo.toml
+++ b/gfx/wr/webrender/Cargo.toml
@@ -26,17 +26,17 @@ webrender_build = { version = "0.0.1", p
 base64 = { optional = true, version = "0.10" }
 bincode = "1.0"
 bitflags = "1.0"
 byteorder = "1.0"
 cfg-if = "0.1.2"
 cstr = "0.1.2"
 fxhash = "0.2.1"
 gleam = "0.6.16"
-image = { optional = true, version = "0.21" }
+image = { optional = true, version = "0.21", default-features = false, features = ["png_codec"] }
 lazy_static = "1"
 log = "0.4"
 malloc_size_of_derive = "0.1"
 num-traits = "0.2"
 plane-split = "0.13.7"
 png = { optional = true, version = "0.14" }
 rayon = "1"
 ron = { optional = true, version = "0.1.7" }