You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@
4
4
5
5
This package makes it easy to run AWS Lambda Functions written in Rust. This workspace includes multiple crates:
6
6
7
-
***`lambda-runtime-client`** is a client SDK for the Lambda Runtime APIs. You probably don't need to use this crate directly!
8
-
***`lambda-runtime`** is a library that makes it easy to write Lambda functions in Rust.
9
-
***`lambda-http`** is a library that makes it easy to write API Gateway proxy event focused Lambda functions in Rust.
7
+
-[](https://docs.rs/lambda_runtime_client)**`lambda-runtime-client`** is a client SDK for the Lambda Runtime APIs. You probably don't need to use this crate directly!
8
+
-[](https://docs.rs/lambda_runtime)**`lambda-runtime`** is a library that makes it easy to write Lambda functions in Rust.
9
+
-[](https://docs.rs/lambda_http)**`lambda-http`** is a library that makes it easy to write API Gateway proxy event focused Lambda functions in Rust.
10
10
11
11
## Example function
12
12
@@ -100,9 +100,9 @@ Alternatively, you can build a Rust-based Lambda function declaratively using th
100
100
101
101
A number of getting started Serverless application templates exist to get you up and running quickly
102
102
103
-
* a minimal [echo function](https://github.com/softprops/serverless-aws-rust) to demonstrate what the smallest Rust function setup looks like
104
-
* a minimal [http function](https://github.com/softprops/serverless-aws-rust-http) to demonstrate how to interface with API Gateway using Rust's native [http](https://crates.io/crates/http) crate (note this will be a git dependency until 0.2 is published)
105
-
* a combination [multi function service](https://github.com/softprops/serverless-aws-rust-multi) to demonstrate how to set up a services with multiple independent functions
103
+
- a minimal [echo function](https://github.com/softprops/serverless-aws-rust) to demonstrate what the smallest Rust function setup looks like
104
+
- a minimal [http function](https://github.com/softprops/serverless-aws-rust-http) to demonstrate how to interface with API Gateway using Rust's native [http](https://crates.io/crates/http) crate (note this will be a git dependency until 0.2 is published)
105
+
- a combination [multi function service](https://github.com/softprops/serverless-aws-rust-multi) to demonstrate how to set up a services with multiple independent functions
106
106
107
107
Assuming your host machine has a relatively recent version of node, you [won't need to install any host-wide serverless dependencies](https://blog.npmjs.org/post/162869356040/introducing-npx-an-npm-package-runner). To get started, run the following commands to create a new lambda Rust application
108
108
and install project level dependencies.
@@ -162,7 +162,6 @@ $ unzip -o \
162
162
# Ctrl-D to yield control back to your function
163
163
```
164
164
165
-
166
165
## lambda-runtime-client
167
166
168
167
Defines the `RuntimeClient` trait and provides its `HttpRuntimeClient` implementation. The client fetches events and returns output as `Vec<u8>`.
@@ -171,7 +170,7 @@ For error reporting to the runtime APIs the library defines the `RuntimeApiError
171
170
172
171
## lambda-runtime
173
172
174
-
This library makes it easy to create Rust executables for AWS lambda. The library defines a `lambda!()` macro. Call the `lambda!()` macro from your main method with an implementation the `Handler` type:
173
+
This library makes it easy to create Rust executables for AWS lambda. The library defines a `lambda!()` macro. Call the `lambda!()` macro from your main method with an implementation the `Handler` type:
0 commit comments