我想使用reqwest
crate 发出异步 HTTP 请求。我有以下代码:
// see https://docs.rs/reqwest/*/reqwest/async/index.html
use reqwest::async::Client;
当我尝试编译我的代码时,我收到以下错误:
error: expected identifier, found reserved keyword `async`
--> src/main.rs:1:14
|
1 | use reqwest::async::Client;
| ^^^^^ expected identifier, found reserved keyword
如何从async
模块导入?