Cargo Features
[dependencies]
karyon_jsonrpc = { version = "0.2.1", default-features = false, features = ["tcp", "tls", "ws", "unix", "smol", "tokio"] }
- default = smol, tcp, unix
-
These default features are set whenever
karyon_jsonrpc
is added without
somewhere in the dependency tree.default-features = false - tcp default tls? ws?
-
Enables tcp of karyon_net
- tls = tcp
-
Enables tls of karyon_net
- ws = async-tungstenite, tcp
-
Enables ws of karyon_net
Affects
codec::ClonableJsonCodec
,codec::WsJsonCodec
… - unix default
-
Enables unix of karyon_net
- smol default
-
Enables smol of karyon_core, karyon_jsonrpc_macro, and karyon_net and async-std-runtime of optional async-tungstenite
websocket
- tokio
-
Enables tokio of karyon_core, karyon_jsonrpc_macro, and karyon_net, tokio-runtime of optional async-tungstenite
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.