I am trying to make a get
request to a url with rust and everytime I run this project I get this error, my other rust project work fine.
here's my cargo.toml
file.
[package]
name = "api_req"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { version = "1.0", features = ["derive"] }
reqwest = { version = "0.11", features = ["json"] }
tokio = { version = "1", features = ["full"]}
this is the output I get when I try to build/run the code.
error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
|
= note:
This is a known bug which should have been by the resolution for another issue.
Just update by rustup update
or by any package manager you installed the toolchain.