Cargo Features
[dependencies]
karyon_net = { version = "0.1.6", 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 ^0.26.2
websocket
- tokio
-
Enables tokio, tokio-runtime of optional async-tungstenite ^0.26.2, tokio of karyon_core and optional karyon_async_rustls
- serde
-
Enables serde
encode/decode
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.
- karyon_async_rustls tls?
- futures-util stream?
- pin-project-lite stream?
- async-tungstenite ws?
-
Enables async-tungstenite ^0.26.2
- rustls-pki-types tls?
-
Enables rustls-pki-types
tls