Cargo Features

[dependencies]
lodepng = { version = "3.11.0", default-features = false, features = ["rust_backend", "cfzlib", "ngzlib", "c_ffi"] }
default = c_ffi, rust_backend

These default features are set whenever lodepng is added without default-features = false somewhere in the dependency tree.

rust_backend default

Compress using pure-Rust miniz_oxide, which isn't the fastest

Enables rust_backend of flate2

cfzlib

Compress using cloudflare-zlib, which is faster, but written in C

Enables cloudflare_zlib of flate2

ngzlib

Compress using zlib-ng, which is faster, but written in C and requires cmake

Enables zlib-ng-compat of flate2

c_ffi default

Export C API for use in C applications. It's mostly ABI-compatible with the original C lodepng.

Enables libc