Cargo Features

[dependencies]
crux_http = { version = "0.10.3", default-features = false, features = ["encoding", "typegen"] }
default = encoding

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

encoding default = encoding_rs, web-sys

requires web-sys for TextDecoder on wasm

Affects decode::decode_body, decode::decode_body

typegen

Enables typegen of crux_core

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.

encoding_rs encoding
web-sys encoding