Cargo Features

[dependencies]
weezl = { version = "0.1.8", default-features = false, features = ["std", "alloc", "async"] }
default = std

The std feature is set by default whenever weezl is added without default-features = false somewhere in the dependency tree.

std default async? = alloc

Enable usage of the standard library and in particular any interface that requires the io interfaces Read and Write.

Affects error::StreamResult

Required by the lzw binary

alloc std

Enable usage of the alloc crate. You should always have this feature enabled. Without this feature neither the encoder nor the decoder exists. This is purely a reservation for future possibilities.

Affects weezl::decode, weezl::encode

async = futures, std

Enable usage of async through futures. This is basically the blocker for 1.0 as we may track its version. Note that this negates no_std right now but implicitly through being required from futures. We also use the std::io::Error interface. Note that this features is NOT supported on 1.34.2 but only on stable.

Affects decode::IntoAsync, encode::IntoAsync

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

futures async?