Use actix_web::main for main function
AMythicDev opened this issue · 1 comments
AMythicDev commented
The actix_web's newest stable release re-exports actix_rt::main
. So you probably should change your main
function to this
#[actix_web::main]
async fn main() -> std::io::Result<()> {
And append main
to the use
line of actix_web in the main.rs
file.
You should also probably remove actix-rt
from the dependencies list in your Cargo.toml
because I do not see any other use for it.
I should have filled up a PR but I didn't had the time to fork, change and file it. Also I didn't fully studied your codebase