asyc-std是Rust标准库的异步版本。
入门首先在Cargo.toml添加如下内容:
[depedecies]asyc-std="0.99"或者使用 cargoadd :
$cargoaddasyc-stdHelloworld#![feature(asyc_await)]useasyc_std::task;fmai(){task::block_o(asyc{pritl!("Hello,world!");})}开源地址
https://github.com/async-rs/async-std授权协议
Apache/MIT
asyc-std是Rust标准库的异步版本。
入门首先在Cargo.toml添加如下内容:
[depedecies]asyc-std="0.99"或者使用 cargoadd :
$cargoaddasyc-stdHelloworld#![feature(asyc_await)]useasyc_std::task;fmai(){task::block_o(asyc{pritl!("Hello,world!");})}async-std 是 Rust 标准库的异步版本。 入门 首先在Cargo.toml添加如下内容: [dependencies]
async-std = "0.99" 或者使用 cargo a...


评论