-
|
HI, Error Cargo [workspace.dependencies] ... //have the main.rs config use std::error::Error; use futures::{prelude::*, StreamExt}; #[tokio::main] |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Hi @fgtest1, you need to enable the We don't have any default features configured, so you can either enable the |
Beta Was this translation helpful? Give feedback.
-
|
I got this configuration - and have tried ..with.tokio() vs .with.tokio_selector().. root Cargo.toml libp2p = { path = "../rust-libp2p/libp2p", features = ["tcp", "noise", "yamux", "kad", "request-response", "macros", "cbor"] } |
Beta Was this translation helpful? Give feedback.
-
|
Works - thank you all so much appreciate added the tokio to the libp2p2 and remove the single line |
Beta Was this translation helpful? Give feedback.
Hi @fgtest1, you need to enable the
tokiofeature forlibp2p.We don't have any default features configured, so you can either enable the
fullfeature oflibp2pto include all modules, or manually enable individual features for the different transport and behavior protocols that you want to use.