Cargo Features
[dependencies]
nbio = { version = "0.6.1", default-features = false, features = ["http", "tcp", "websocket"] }
- default = http, tcp, websocket
-
These default features are set whenever
nbio
is added without
somewhere in the dependency tree.default-features = false - http default websocket = tcp
-
Enables chunked_transfer, http ^0.2.9, and httparse
Affects
nbio::http
… - tcp default http websocket
-
Enables tcp-stream ^0.26.1
Affects
nbio::tcp
… - websocket default = http, rand, tcp
-
Enables tungstenite
Affects
nbio::websocket
…
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.