mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
v3 examples (#364)
This commit is contained in:
@ -38,7 +38,7 @@ fn index() -> HttpResponse {
|
||||
HttpResponse::Ok().body(html)
|
||||
}
|
||||
|
||||
#[actix_rt::main]
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
std::env::set_var("RUST_LOG", "actix_server=info,actix_web=info");
|
||||
async_std::fs::create_dir_all("./tmp").await?;
|
||||
|
Reference in New Issue
Block a user