Tokio 库
mini redis
cargo install mini-redismini-redis-servermini-redis-cli get foo# You should see (nil).
https://tokio.rs/tokio/tutorial/hello-tokio
创建项目
main
#[tokio::main]async fn main() {println!("hello");}
转化成
fn main() {let mut rt = tokio::runtime::Runtime::new().unwrap();rt.block_on(async {println!("hello");})}
