use netlify_lambda::{lambda, Context}; use serde_json::Value; type Error = Box; // #[lambda] attribute removes the need for boilerplate code // required by `lambda::run(func).await?` as demonstrated in other // examples. #[lambda] #[tokio::main] async fn main(event: Value, _: Context) -> Result { Ok(event) }