Cargo Features
[dependencies]
lodepng = { version = "3.10.7", default-features = false, features = ["rust_backend", "cfzlib", "ngzlib", "c_ffi", "deprecated_back_compat_error_type"] }
- default = c_ffi, rust_backend
-
These default features are set whenever
lodepng
is added without
somewhere in the dependency tree.default-features = false - 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
- deprecated_back_compat_error_type
-
Deprecated. Implements
From<fallible_collections::TryReserveError> for Error
Don't use this feature, don't rely onfallible_collections
.Enables fallible_collections ^0.4.5