use actix_web::{web, get,App,HttpServer,Responder,HttpResponse};#[get("/")]asyncfnhello_world() -> HttpResponse{HttpResponse::Ok().json("Hello, World")}#[actix_web::main]asyncfnmain() -> std::io::Result<()>{HttpServer::new(|| {App::new().service(hello_world)}).bind("127.0.0.1:8080")?
.run().await}
How to start a business and actually survive the process.
@nexorbs
@nexorbs





