Cargo Features
[dependencies]
karyon_net = { version = "0.2.1", default-features = false, features = ["all-protocols", "stream", "tcp", "tls", "ws", "udp", "unix", "smol", "tokio", "serde"] }
- default = all-protocols, smol
-
These default features are set whenever
karyon_net
is added without
somewhere in the dependency tree.default-features = false - all-protocols default = tcp, tls, udp, unix, ws
- stream tcp? unix? = futures-util, pin-project-lite
- tcp all-protocols tls? ws? = stream
-
Affects
transports::tcp
… - tls all-protocols = karyon_async_rustls, rustls-pki-types, tcp
-
Affects
transports::tls
,ws::ServerWssConfig.server_config
,ws::ClientWssConfig.client_config
… - ws all-protocols = async-tungstenite, tcp
-
Affects
transports::ws
… - udp all-protocols
-
Affects
transports::udp
… - unix all-protocols = stream
-
Affects
transports::unix
… - smol default
-
Enables smol of karyon_core and optional karyon_async_rustls and async-std-runtime of optional async-tungstenite
websocket
- tokio
-
Enables tokio, tokio-runtime of optional async-tungstenite, tokio of karyon_core and optional karyon_async_rustls
- serde
-
Enables serde
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.