1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

chore: update root deps

This commit is contained in:
Rob Ede
2024-01-30 23:44:35 +00:00
parent 474f423556
commit dc3de98d46
5 changed files with 40 additions and 45 deletions

View File

@ -8,4 +8,4 @@ actix-web.workspace = true
env_logger.workspace = true
log.workspace = true
serde = "1"
serde.workspace = true

View File

@ -1,7 +1,7 @@
use actix_web::{error, post, web, App, HttpRequest, HttpResponse, HttpServer, Responder};
use serde::Deserialize;
#[derive(Deserialize)]
#[derive(Debug, Deserialize)]
struct Info {
name: String,
}
@ -38,6 +38,7 @@ async fn main() -> std::io::Result<()> {
.error_handler(json_error_handler),
)
})
.workers(2)
.bind(("127.0.0.1", 8080))?
.run()
.await