MCPcopy Create free account
hub / github.com/actix/examples / main

Function main

docker/src/main.rs:14–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13#[actix_web::main]
14async fn main() -> std::io::Result<()> {
15 env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
16
17 log::info!("Starting HTTP server: go to http://localhost:8080");
18
19 HttpServer::new(|| {
20 App::new()
21 .wrap(Logger::default())
22 .service(index)
23 .service(again)
24 })
25 .bind(("0.0.0.0", 8080))?
26 .run()
27 .await
28}

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected