Cargo Features
[dependencies]
weezl = { version = "0.1.12", default-features = false, features = ["std", "alloc", "async"] }
- default = std
-
The
stdfeature is set by default wheneverweezlis added withoutsomewhere 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
ReadandWrite.Affects
error::StreamResult…Required by the lzw binary
- alloc std
-
Enable usage of the
alloccrate. 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
asyncthroughfutures. This is basically the blocker for1.0as 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::Errorinterface. 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.