Cargo Features

[dependencies]
libpng-sys = { version = "1.1.10", default-features = false, features = ["build", "static", "libz-sys", "cloudflare-zlib-sys", "static-libz"] }
default = libz-sys

The libz-sys feature is set by default whenever libpng-sys is added without default-features = false somewhere in the dependency tree.

build = static
static build?
libz-sys default static-libz?

Enables libz-sys

cloudflare-zlib-sys

You must disable libz-sys feature for this to work

Enables cloudflare-zlib-sys

static-libz

Enables static of libz-sys

libz-sys:

Enable this feature if you want to have a statically linked libz