diff --git a/README.md b/README.md index ade632877..11848c51d 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ Dependencies: ```toml [dependencies] +actix-rt = "1" actix-web = "2" ``` @@ -65,7 +66,7 @@ async fn index(info: web::Path<(u32, String)>) -> impl Responder { format!("Hello {}! id:{}", info.1, info.0) } -#[actix_web::main] +#[actix_rt::main] async fn main() -> std::io::Result<()> { HttpServer::new(|| App::new().service(index)) .bind("127.0.0.1:8080")?