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

Function main

tests/fixtures/watch-multi-binary/src/bin/hello.rs:26–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25#[tokio::main]
26async fn main() -> Result<(), Error> {
27 tracing_subscriber::fmt()
28 .with_env_filter(
29 EnvFilter::builder()
30 .with_default_directive(LevelFilter::INFO.into())
31 .from_env_lossy(),
32 )
33 // disable printing the name of the module in every log line.
34 .with_target(false)
35 // disabling time is handy because CloudWatch will add the ingestion time.
36 .without_time()
37 .init();
38
39 run(service_fn(function_handler)).await
40}

Callers

nothing calls this directly

Calls 2

initMethod · 0.80
runFunction · 0.50

Tested by

no test coverage detected