Cargo Features
[dependencies]
weezl = { version = "0.1.8", default-features = false, features = ["std", "alloc", "async"] }
- default = std
-
The
std
feature is set by default wheneverweezl
is added without
somewhere in the dependency tree.default-features = false - std default async? = alloc
-
Enable usage of the standard library and in particular any interface that requires the io interfaces
Read
andWrite
.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
throughfutures
. This is basically the blocker for1.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 thestd::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.