Cargo Features

[dependencies]
boluo = { version = "0.6.1", default-features = false, features = ["server", "http1", "http2", "multipart", "sse", "ws", "static-file", "tokio"] }
default = http1

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

server http1 http2?

Enables server and tokio of hyper-util, macros and rt of tokio, compat of tokio-util

http1 default = server

Enables http1 of hyper and hyper-util

hyper:

HTTP versions

Affects boluo::server

http2 = server

Enables http2 of hyper and hyper-util

Affects boluo::server

multipart = multer

Affects boluo::multipart

sse = memchr

Enables time of tokio

Affects response::sse

ws = base64, hyper, sha1, tokio-tungstenite

Enables tokio of hyper-util, compat of tokio-util and rt of tokio

tokio:

Includes basic task execution capabilities

Affects boluo::ws

static-file = mime_guess

Enables fs and io-util of tokio, io of tokio-util

Affects boluo::static_file

tokio server? sse? static-file? ws?

Enables net of tokio

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.

multer multipart?
hyper http1 http2? ws?
hyper-util http1 http2? server? ws?
tokio-util server? static-file? ws?
tokio-tungstenite ws?
sha1 ws?
base64 ws?
mime_guess static-file?
memchr sse?