aboutsummaryrefslogtreecommitdiff
path: root/p2p
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-05-19 23:41:31 +0200
committerhozan23 <hozan23@karyontech.net>2024-05-19 23:41:31 +0200
commitf6f44784fff5488bb59d563ee7ff7b94c08a48c1 (patch)
tree63fa6fa0d620748a92d819f4773773ea9d53afc5 /p2p
parenta6016c7eeb11fc8aeaa1a3b160b970b15362695d (diff)
use cargo features to enable/disable protocols for net crate
Diffstat (limited to 'p2p')
-rw-r--r--p2p/Cargo.toml10
1 files changed, 6 insertions, 4 deletions
diff --git a/p2p/Cargo.toml b/p2p/Cargo.toml
index 3147d39..d9eea5f 100644
--- a/p2p/Cargo.toml
+++ b/p2p/Cargo.toml
@@ -14,12 +14,16 @@ tokio = ["karyon_core/tokio", "karyon_net/tokio", "dep:tokio-rustls"]
karyon_core = { workspace = true, features = [
"crypto",
], default-features = false }
-karyon_net = { workspace = true, default-features = false }
+karyon_net = { workspace = true, default-features = false, features = [
+ "tcp",
+ "tls",
+ "udp",
+] }
async-trait = "0.1.77"
async-channel = "2.3.0"
futures-util = { version = "0.3.5", features = [
- "std",
+ "alloc",
], default-features = false }
log = "0.4.21"
chrono = "0.4.35"
@@ -46,5 +50,3 @@ ctrlc = "3.4.4"
easy-parallel = "3.3.1"
env_logger = "0.11.3"
smol = "2.0.0"
-
-