MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / main

Function main

tests/templates/function-template/src/main.rs:81–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80#[tokio::main]
81async fn main() -> Result<(), Error> {
82 tracing_subscriber::fmt()
83 .with_max_level(tracing::Level::INFO)
84 // disable printing the name of the module in every log line.
85 .with_target(false)
86 // disabling time is handy because CloudWatch will add the ingestion time.
87 .without_time()
88 .init();
89
90 run(service_fn(function_handler)).await
91}

Callers

nothing calls this directly

Calls 2

initMethod · 0.80
runFunction · 0.50

Tested by

no test coverage detected