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

Function main

forms/form/src/main.rs:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8#[actix_web::main]
9async fn main() -> std::io::Result<()> {
10 HttpServer::new(|| {
11 App::new()
12 .wrap(middleware::Logger::default())
13 .configure(app_config)
14 })
15 .bind(("127.0.0.1", 8080))?
16 .run()
17 .await
18}
19
20fn app_config(config: &mut web::ServiceConfig) {
21 config.service(

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected