MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / main

Function main

lambda-integration-tests/src/helloworld.rs:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7#[tokio::main]
8async fn main() -> Result<(), Error> {
9 tracing::init_default_subscriber();
10 let func = service_fn(func);
11 lambda_runtime::spawn_graceful_shutdown_handler(|| async move {}).await;
12 lambda_runtime::run(func).await?;
13 Ok(())
14}
15
16async fn func(_event: LambdaEvent<ApiGatewayProxyRequest>) -> Result<ApiGatewayProxyResponse, Error> {
17 let mut headers = HeaderMap::new();

Callers

nothing calls this directly

Calls 3

init_default_subscriberFunction · 0.85
runFunction · 0.50

Tested by

no test coverage detected