actix_web::main vs tokio::main #2852
-
I am very new to Rust and Actix. What is the difference to use between Seems like it choose the runtime between Based on crates.io explanation, actix-rt is single threaded async runtime and tokio is multi-thread. What is pros and cons? (It is very difficult to figure out for me) (Is there any link(s) to study this topic?) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This page should give some good info: https://docs.rs/actix-web/latest/actix_web/rt/index.html#running-actix-web-using-tokiomain Lmk if there's something missing that we can add to the page. |
Beta Was this translation helpful? Give feedback.
This page should give some good info: https://docs.rs/actix-web/latest/actix_web/rt/index.html#running-actix-web-using-tokiomain
Lmk if there's something missing that we can add to the page.