Open CppXL opened 2 years ago
I just can only build examples code in git clone https://github.com/aatxe/irc.git
directory
It looks like the #[tokio::main]
macro is locked behind a feature now, so you'd need to add rt
and macros
to the feature list for the tokio crate.
It looks like the
#[tokio::main]
macro is locked behind a feature now, so you'd need to addrt
andmacros
to the feature list for the tokio crate.
thanks for you response, now I can compile fine, but a panic is triggered in the tokio
library, I will continue to investigate how this error is generated
It looks like the
#[tokio::main]
macro is locked behind a feature now, so you'd need to addrt
andmacros
to the feature list for the tokio crate.
Sorry, I'm new to Rust, how do I do this?
@GTP95:
tokio = { version = "1.28.0", features = ["rt", "macros"] }
See https://doc.rust-lang.org/stable/cargo/reference/features.html#dependency-features.
my rust env
I have a rust library which create by
cargo new circ --bin
I try to copyirc/examples/simple_plaintext.rs
source code tocirc/src/main.rs
when I try to build it with
cargo build
, cargo give three errorsThis is src/main.rs
This is Cargo.toml