From rust-lambda
Initialize a new AWS Lambda Rust project using Cargo Lambda. Use this when the user wants to start a new Lambda function in Rust, set up the project structure, or install required tooling (cargo-lambda). Guides through all setup steps including installation and project creation.
npx claudepluginhub lep511/claude-rust-lambda-plugin --plugin rust-lambdaThis skill uses the workspace's default tool permissions.
Help the user initialize a new AWS Lambda function project in Rust.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Help the user initialize a new AWS Lambda function project in Rust.
If not provided in $ARGUMENTS, ask:
cargo lambda new <name>)ApiGatewayProxyRequest, SqsEvent, S3Event) or a custom structCargo Lambda is the official third-party open-source extension to the Cargo CLI that simplifies building and deploying Rust Lambda functions.
cargo install cargo-lambda
Verify it installed correctly:
cargo lambda --version
cargo lambda new <project-name>
When prompted by the CLI:
Yes only if the function will be invoked via API Gateway or a Function URL. Otherwise answer No.cd <project-name>
After creation, explain the generated structure to the user:
<project-name>/
├── src/
│ ├── main.rs # Main application logic and entry point
│ └── generic_handler.rs # Generic event handler (can be customized)
└── Cargo.toml # Package metadata and dependencies
Key points about main.rs:
#[tokio::main] marks the entry point and sets up the Tokio async runtimeasync fn main() specifies function_handler as the Lambda handlerlambda_runtime crate provides run, service_fn, LambdaEvent, and Error[dependencies]
lambda_runtime = "0.13.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["full"] }
For SDK interactions, add specific crates (e.g. aws-sdk-s3 = "1.78.0").
Suggest the user run /rust-lambda:build to compile the project, or /rust-lambda:new-handler to scaffold a handler with business logic.
lambda_runtime crate) is NOT a managed runtime like Python or Node.js runtimes in Lambda. It is a crate that interfaces with Lambda's execution environment.