Cargo Features
[dependencies]
crux_http = { version = "0.11.5", default-features = false, features = ["encoding", "typegen", "http-compat"] }
- default = encoding
-
The
encoding
feature is set by default whenevercrux_http
is added without
somewhere in the dependency tree.default-features = false - encoding default = encoding_rs, web-sys
-
requires web-sys for TextDecoder on wasm
Affects
decode::decode_body
,decode::decode_body
… - typegen
- http-compat
-
Enables http
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.