Windows mingw toolchain issue

I have a project when i use the tokio in main function:

use std::io;

mod request;

async fn main() {
    println!("Enter a URL");
    let mut url = String::new();
        .read_line(&mut url)
        .expect("Failed to read line");

    let url = url.trim();
    println!("You entered: {}", url);

    match request::http::get(url).await {
        Ok(text) => println!("{}", text),
        Err(e) => println!("Error: {}", e),

and in Cargo.toml:

name = "project-name"
version = "0.1.0"
edition = "2021"

reqwest = "0.11"
tokio = { version = "1", features = ["full"] }

but when i run

cargo run

i have the error:

Can you help me?

Just to be sure, you have followed all the instructions properly while installing Rust, right?
And you can run "Hello, World"?

Is there any more information? The screenshot cuts off before getting to the part where the linker prints the error it encountered.

Yes, i can run the "hello world". this error it's only when i use the "tokio"

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.