Cargo Features

[dependencies]
xitca-http = { version = "0.6.0", default-features = false, features = ["http1", "http2", "http3", "openssl", "rustls", "rustls-uring", "native-tls", "runtime", "io-uring", "router"] }
default = http1

default include only http1.

http1 default = httparse, itoa, runtime

http1 specific feature.

Affects xitca-http::h1, util::buffered

http2 = fnv, h2, runtime, slab

http2 specific feature.

Enables alloc of futures-util

Affects xitca-http::h2, util::buffered

http3 = h3, h3-quinn, runtime

http3 specific feature.

Enables alloc of futures-util, quic of xitca-io

Affects xitca-http::h3

openssl = runtime

openssl as server side tls.

Enables openssl of xitca-tls

tls support shared

rustls rustls-uring? = runtime

rustls as server side tls.

Enables rustls-no-crypto of xitca-tls

rustls-uring = rustls

rustls as server side tls.

Enables runtime-uring of xitca-io, rustls-uring-no-crypto of xitca-tls

native-tls = runtime

rustls as server side tls.

Enables native-tls

native tls support

runtime http1 http2? http3? native-tls? openssl? rustls? = tokio

async runtime feature.

Enables runtime of xitca-io

Affects xitca-http::date

io-uring = tokio-uring

unstable features that are subject to be changed at anytime.

Enables runtime-uring of xitca-io

Affects service::H1UringService

router = xitca-router

Affects service::route, service::router

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.

xitca-tls openssl? rustls? rustls-uring?
httparse http1

Enables httparse

http/1 support

itoa http1
h2 http2?

Enables h2

http/2 support

fnv http2?
futures-util http2? http3?
slab http2?
h3 http3?

Enables h3

http/3 support

h3-quinn http3?
tokio runtime?

Enables tokio

async runtime support.

xitca-router router?

Enables xitca-router

util service support

tokio-uring io-uring?

Enables tokio-uring

io-uring support