From 311ce95b592e32bac4c882f1444b952234a75f23 Mon Sep 17 00:00:00 2001 From: Astraea Sinclair Date: Fri, 14 Nov 2025 14:13:09 +0000 Subject: [PATCH 1/2] docs: point docs to aws/aws-lambda-rust-runtime instead of awslabs/ --- CONTRIBUTING.md | 6 +++--- README.md | 8 ++++---- examples/basic-error-handling/src/main.rs | 2 +- examples/http-basic-lambda/src/main.rs | 2 +- examples/http-dynamodb/src/main.rs | 2 +- examples/http-query-parameters/src/main.rs | 2 +- lambda-events/README.md | 2 +- lambda-http/README.md | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9b87d31fc..108db9c92 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,7 @@ information to effectively respond to your bug report or contribution. We welcome you to use the GitHub issue tracker to report bugs or suggest features. -When filing an issue, please check [existing open](https://github.com/awslabs/aws-lambda-rust-runtime/issues), or [recently closed](https://github.com/awslabs/aws-lambda-rust-runtime/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already +When filing an issue, please check [existing open](https://github.com/aws/aws-lambda-rust-runtime/issues), or [recently closed](https://github.com/aws/aws-lambda-rust-runtime/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful: * A reproducible test case or series of steps @@ -40,7 +40,7 @@ GitHub provides additional document on [forking a repository](https://help.githu ## Finding contributions to work on -Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/awslabs/aws-lambda-rust-runtime/labels/help%20wanted) issues is a great place to start. +Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/aws/aws-lambda-rust-runtime/labels/help%20wanted) issues is a great place to start. ## Code of Conduct @@ -54,6 +54,6 @@ If you discover a potential security issue in this project we ask that you notif ## Licensing -See the [LICENSE](https://github.com/awslabs/aws-lambda-rust-runtime/blob/main/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution. +See the [LICENSE](https://github.com/aws/aws-lambda-rust-runtime/blob/main/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution. We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes. diff --git a/README.md b/README.md index 954b195c1..080867b9a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Rust Runtime for AWS Lambda -[![Build Status](https://github.com/awslabs/aws-lambda-rust-runtime/actions/workflows/check-examples.yml/badge.svg)](https://github.com/awslabs/aws-lambda-rust-runtime/actions) +[![Build Status](https://github.com/aws/aws-lambda-rust-runtime/actions/workflows/check-examples.yml/badge.svg)](https://github.com/aws/aws-lambda-rust-runtime/actions) This package makes it easy to run AWS Lambda Functions written in Rust. This workspace includes multiple crates: @@ -113,7 +113,7 @@ async fn handler(_event: LambdaEvent<()>) -> Result<(), ErrorResponse> { } ``` -We recommend you to use the [thiserror crate](https://crates.io/crates/thiserror) to declare your errors. You can see an example on how to integrate `thiserror` with the Runtime's diagnostics in our [example repository](https://github.com/awslabs/aws-lambda-rust-runtime/tree/main/examples/basic-error-thiserror) +We recommend you to use the [thiserror crate](https://crates.io/crates/thiserror) to declare your errors. You can see an example on how to integrate `thiserror` with the Runtime's diagnostics in our [example repository](https://github.com/aws/aws-lambda-rust-runtime/tree/main/examples/basic-error-thiserror) ### Anyhow, Eyre, and Miette @@ -129,7 +129,7 @@ async fn handler(_event: LambdaEvent) -> Result<(), Diagnostic> { } ``` -You can see more examples on how to use these error crates in our [example repository](https://github.com/awslabs/aws-lambda-rust-runtime/tree/main/examples/basic-error-error-crates-integration). +You can see more examples on how to use these error crates in our [example repository](https://github.com/aws/aws-lambda-rust-runtime/tree/main/examples/basic-error-error-crates-integration). ### Graceful shutdown @@ -370,7 +370,7 @@ Now you can use the `cargo lambda invoke` to send requests to your function. For cargo lambda invoke --data-ascii '{ "command": "hi" }' ``` -Running the command on a HTTP function (Function URL, API Gateway, etc) will require you to use the appropriate scheme. You can find examples of these schemes [here](https://github.com/awslabs/aws-lambda-rust-runtime/tree/main/lambda-http/tests/data). Otherwise, you will be presented with the following error. +Running the command on a HTTP function (Function URL, API Gateway, etc) will require you to use the appropriate scheme. You can find examples of these schemes [here](https://github.com/aws/aws-lambda-rust-runtime/tree/main/lambda-http/tests/data). Otherwise, you will be presented with the following error. ```rust,no_run Error: serde_json::error::Error diff --git a/examples/basic-error-handling/src/main.rs b/examples/basic-error-handling/src/main.rs index 85e97428b..f434c9039 100644 --- a/examples/basic-error-handling/src/main.rs +++ b/examples/basic-error-handling/src/main.rs @@ -1,4 +1,4 @@ -/// See for more info on Rust runtime for AWS Lambda +/// See for more info on Rust runtime for AWS Lambda use lambda_runtime::{service_fn, tracing, Error, LambdaEvent}; use serde::{Deserialize, Serialize}; use serde_json::json; diff --git a/examples/http-basic-lambda/src/main.rs b/examples/http-basic-lambda/src/main.rs index 9db6b2750..87376d374 100644 --- a/examples/http-basic-lambda/src/main.rs +++ b/examples/http-basic-lambda/src/main.rs @@ -3,7 +3,7 @@ use lambda_http::{run, service_fn, tracing, Body, Error, Request, Response}; /// This is the main body for the function. /// Write your code inside it. /// There are some code examples in the Runtime repository: -/// - +/// - async fn function_handler(_event: Request) -> Result, Error> { // Extract some useful information from the request diff --git a/examples/http-dynamodb/src/main.rs b/examples/http-dynamodb/src/main.rs index 0d37693fa..006678a1c 100644 --- a/examples/http-dynamodb/src/main.rs +++ b/examples/http-dynamodb/src/main.rs @@ -15,7 +15,7 @@ pub struct Item { /// This is the main body for the function. /// Write your code inside it. /// You can see more examples in Runtime's repository: -/// - +/// - async fn handle_request(db_client: &Client, event: Request) -> Result, Error> { // Extract some useful information from the request let body = event.body(); diff --git a/examples/http-query-parameters/src/main.rs b/examples/http-query-parameters/src/main.rs index c974e6330..98893bea1 100644 --- a/examples/http-query-parameters/src/main.rs +++ b/examples/http-query-parameters/src/main.rs @@ -3,7 +3,7 @@ use lambda_http::{run, service_fn, tracing, Error, IntoResponse, Request, Reques /// This is the main body for the function. /// Write your code inside it. /// You can see more examples in Runtime's repository: -/// - +/// - async fn function_handler(event: Request) -> Result { // Extract some useful information from the request Ok( diff --git a/lambda-events/README.md b/lambda-events/README.md index 8446ce554..b091916f2 100644 --- a/lambda-events/README.md +++ b/lambda-events/README.md @@ -15,7 +15,7 @@ The crate itself has no AWS Lambda handler logic and instead exists to serialize and deserialize AWS Lambda events into strongly-typed Rust structs. The types -defined in this crate are usually used with handlers / runtimes provided by the [official Rust runtime](https://github.com/awslabs/aws-lambda-rust-runtime). +defined in this crate are usually used with handlers / runtimes provided by the [official Rust runtime](https://github.com/aws/aws-lambda-rust-runtime). For a list of supported AWS Lambda events and services, see [the crate reference documentation](https://docs.rs/aws_lambda_events). diff --git a/lambda-http/README.md b/lambda-http/README.md index 6b394964c..566623820 100644 --- a/lambda-http/README.md +++ b/lambda-http/README.md @@ -169,7 +169,7 @@ pub fn custom_authorizer_response(effect: &str, principal: &str, method_arn: &st ApiGatewayCustomAuthorizerResponse { principal_id: Some(principal.to_owned()), policy_document: policy, - context: json!({ "email": principal }), // https://github.com/awslabs/aws-lambda-rust-runtime/discussions/548 + context: json!({ "email": principal }), // https://github.com/aws/aws-lambda-rust-runtime/discussions/548 usage_identifier_key: None, } } From a420af79a473d310c6c80674bbfc1c36129a7339 Mon Sep 17 00:00:00 2001 From: Astraea Sinclair Date: Fri, 14 Nov 2025 14:48:23 +0000 Subject: [PATCH 2/2] Remove experimental --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 080867b9a..5f9806899 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,6 @@ This package makes it easy to run AWS Lambda Functions written in Rust. This wor - [![Docs](https://docs.rs/aws_lambda_events/badge.svg)](https://docs.rs/aws_lambda_events) **`lambda-events`** is a library with strongly-typed Lambda event structs in Rust. - [![Docs](https://docs.rs/lambda_runtime_api_client/badge.svg)](https://docs.rs/lambda_runtime_api_client) **`lambda-runtime-api-client`** is a shared library between the lambda runtime and lambda extension libraries that includes a common API client to talk with the AWS Lambda Runtime API. -The Rust runtime client is an experimental package. It is subject to change and intended only for evaluation purposes. - ## Getting started The easiest way to start writing Lambda functions with Rust is by using [Cargo Lambda](https://www.cargo-lambda.info/), a related project. Cargo Lambda is a Cargo plugin, or subcommand, that provides several commands to help you in your journey with Rust on AWS Lambda.