Cargo Features
[dependencies]
boluo = { version = "0.5.3", 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
somewhere in the dependency tree.default-features = false - listener server
-
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
-
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.