Registry / cloud / lambda-runtime

lambda-runtime

JSON →
library1.2.1rscratesunverified

AWS Lambda Runtime for Rust, enabling serverless function execution.

# Cargo.toml [dependencies] lambda_runtime = "1.2.1"
INSTALL
IMPORT
SIG · LAMBDA-RUNTIME
L
lambda-runtime
cloudrustv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run
use lambda_runtime::run;

Runs a simple AWS Lambda function handler.

use lambda_runtime::{run, service_fn, Error, LambdaEvent}; use serde_json::Value; async fn handler(event: LambdaEvent<Value>) -> Result<Value, Error> { Ok(event.payload) } #[tokio::main] async fn main() -> Result<(), Error> { run(service_fn(handler)).await }
Debug
Known issues
gotchaRequires tokio runtime
fix
Add tokio as a dependency and use #[tokio::main]
affects: >=1.0.0
Upgrade
Version history
1.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
lambda-runtime — cargo add lambda-runtime · libregistry