Cargo Features

[dependencies]
scuffle-http = { version = "0.0.0", default-features = false, features = ["error-backtrace", "http1", "http2", "http3", "http3-webtransport", "quic-quinn", "tls-rustls", "tls-rustls-pem", "tracing", "tower", "axum", "http3-default"] }
error-backtrace
http1 default = _tcp, httparse

Affects config::Http1Builder, config::TcpServerConfig.http1_builder, util::Version, util::Rewind, util::read_version

http2 default = _tcp, h2

Affects config::TcpServerConfig.http2_builder, util::Version, util::Rewind, util::read_version

http3 http3-default? http3-webtransport? quic-quinn? = h3, quic-quinn
http3-webtransport = http3, quic-quinn, scuffle-h3-webtransport

Affects quic::web_transport

_tcp http1 http2

Affects backend::tcp

quic-quinn http3? http3-default? http3-webtransport? = h3-quinn, http3, quinn

Quinn is a quic backend for http3

default = http1, http2, tracing

These default features are set whenever scuffle-http is added without default-features = false somewhere in the dependency tree.

tls-rustls http3-default? tls-rustls-pem? = rustls, tokio-rustls

Affects config::QuinnBackendBuilderError, config::RustlsLazyAcceptor, util::is_tls, util::make_bad_response

tls-rustls-pem = rustls-pemfile, tls-rustls

Affects config::HyperBackendBuilderError

tracing default

Enables tracing

For tracing features

tower axum?

Enables tower-service

For extra services features

axum = tower

Enables axum-core

http3-default = http3, quic-quinn, tls-rustls

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.

rustls tls-rustls?

Enables rustls

for tls-rustls features

rustls-pemfile tls-rustls-pem?

Enables rustls-pemfile

for tls-rustls-pem features

tokio-rustls tls-rustls?
h3 http3?

Enables h3

For http3 features

Affects backend::quic

scuffle-h3-webtransport http3-webtransport?
h3-quinn quic-quinn?

Enables h3-quinn

For http3-quinn features

Affects quic::quinn

quinn quic-quinn?
h2 http2

Enables h2

http2

httparse http1

Enables httparse

http1