From f6f44784fff5488bb59d563ee7ff7b94c08a48c1 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Sun, 19 May 2024 23:41:31 +0200 Subject: use cargo features to enable/disable protocols for net crate --- jsonrpc/Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'jsonrpc/Cargo.toml') diff --git a/jsonrpc/Cargo.toml b/jsonrpc/Cargo.toml index cf49d6e..719543e 100644 --- a/jsonrpc/Cargo.toml +++ b/jsonrpc/Cargo.toml @@ -22,7 +22,12 @@ tokio = [ [dependencies] karyon_core = { workspace = true, default-features = false } -karyon_net = { workspace = true, default-features = false } +karyon_net = { workspace = true, default-features = false, features = [ + "tcp", + "unix", + "tls", + "ws", +] } karyon_jsonrpc_macro = { path = "jsonrpc_macro", default-features = false } @@ -32,7 +37,6 @@ async-tungstenite = { version = "0.25.0", default-features = false } serde = { version = "1.0.197", features = ["derive"] } serde_json = "1.0.114" thiserror = "1.0.58" -memchr = "2.7.1" async-trait = "0.1.77" futures-rustls = { version = "0.25.1", optional = true } -- cgit v1.2.3