Cargo Features
[dependencies]
scuffle-http = { version = "0.2.0", default-features = false, features = ["tracing", "http1", "http2", "http3", "tls-rustls", "http3-tls-rustls", "tower"] }
https://doc.rust-lang.org/cargo/reference/features.html#dependency-features
- default = http1, http2, tower
-
These default features are set whenever
scuffle-http
is added without
somewhere in the dependency tree.default-features = false - tracing
-
Enables tracing of optional h3 and optional h3-quinn and tracing
Tracing
QUIC + HTTP/3
and logging of optional rustls and optional tokio-rustls
tokio-rustls:
TLS
- http1 default
-
Enables libc and http1 of hyper and hyper-util
hyper:
HTTP/1.1, HTTP/2
Affects
backend::hyper
,scuffle-http::backend
… - http2 default
-
Enables libc, http2 of hyper and hyper-util
Affects
backend::hyper
,scuffle-http::backend
… - http3 http3-tls-rustls?
-
Enables h3, h3-quinn, and quinn
Affects
backend::h3
,scuffle-http::backend
… - tls-rustls http3-tls-rustls?
-
Enables rustls and tokio-rustls
- http3-tls-rustls = http3, tls-rustls
- tower default
-
Enables tower
Tower Services