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:
@ -8,4 +8,4 @@ actix-web.workspace = true
|
||||
|
||||
env_logger.workspace = true
|
||||
log.workspace = true
|
||||
serde = "1"
|
||||
serde.workspace = true
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user