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 --- net/examples/tcp_codec_tokio/Cargo.lock | 17 ----------------- net/examples/tcp_codec_tokio/Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) (limited to 'net/examples') diff --git a/net/examples/tcp_codec_tokio/Cargo.lock b/net/examples/tcp_codec_tokio/Cargo.lock index b9665ab..a9f015b 100644 --- a/net/examples/tcp_codec_tokio/Cargo.lock +++ b/net/examples/tcp_codec_tokio/Cargo.lock @@ -78,19 +78,6 @@ dependencies = [ "tungstenite", ] -[[package]] -name = "asynchronous-codec" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a860072022177f903e59730004fb5dc13db9275b79bb2aef7ba8ce831956c233" -dependencies = [ - "bytes", - "futures-sink", - "futures-util", - "memchr", - "pin-project-lite", -] - [[package]] name = "autocfg" version = "1.3.0" @@ -457,11 +444,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ "futures-core", - "futures-io", "futures-macro", "futures-sink", "futures-task", - "memchr", "pin-project-lite", "pin-utils", "slab", @@ -621,13 +606,11 @@ dependencies = [ "async-channel", "async-trait", "async-tungstenite", - "asynchronous-codec", "bincode", "futures-util", "karyon_core", "log", "pin-project-lite", - "rustls-pki-types", "thiserror", "tokio", "tokio-rustls", diff --git a/net/examples/tcp_codec_tokio/Cargo.toml b/net/examples/tcp_codec_tokio/Cargo.toml index e21b2b7..c72be64 100644 --- a/net/examples/tcp_codec_tokio/Cargo.toml +++ b/net/examples/tcp_codec_tokio/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [workspace] [dependencies] -karyon_net = { path = "../../", default-features = false, features = ["tokio"] } +karyon_net = { path = "../../", default-features = false, features = ["tokio", "tcp"] } karyon_core = { path = "../../../core", default-features = false, features = ["tokio"] } tokio = { version = "1.37.0", features = ["full"] } -- cgit v1.2.3