`main` function is not allowed to be `async`

修改依赖:
版本不一定是这个,需要跟你你使用的版本来进行选择

tokio = { version = "1.13.0", features = ["full"] }

相关问题:How to use async/await in Rust when you can't make main function async](https://stackoverflow.com/questions/71116502/how-to-use-async-await-in-rust-when-you-cant-make-main-function-async)

# Rust 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×