Cargo Features

[dependencies]
boluo = { version = "0.5.0", default-features = false, features = ["listener", "server", "http1", "http2", "multipart", "sse", "ws", "fs"] }
default = http1, server

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

listener server

Enables net of tokio

Affects boluo::listener

server default = listener, tokio-util

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

Affects boluo::server

http1 default

Enables http1 of hyper and hyper-util

hyper:

HTTP versions

Affects boluo::server

http2

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 and rt of tokio

tokio:

Includes basic task execution capabilities

Affects boluo::ws

fs = mime_guess

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

Affects boluo::fs

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? server ws?
hyper-util http1 http2? server ws?
tokio fs? listener? server sse? ws?
tokio-util fs? server
tokio-tungstenite ws?
sha1 ws?
base64 ws?
mime_guess fs?
memchr sse?