https://github.com/robertohuertasm/aws-lambda-rust
Example of AWS Lambda written in Rust
https://github.com/robertohuertasm/aws-lambda-rust
aws lambda-functions
Last synced: about 1 year ago
JSON representation
Example of AWS Lambda written in Rust
- Host: GitHub
- URL: https://github.com/robertohuertasm/aws-lambda-rust
- Owner: robertohuertasm
- Created: 2018-12-02T11:33:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-22T17:42:42.000Z (over 7 years ago)
- Last Synced: 2025-04-10T00:07:28.493Z (about 1 year ago)
- Topics: aws, lambda-functions
- Language: Rust
- Homepage: https://robertohuertas.com/2018/12/02/aws-lambda-rust/
- Size: 27.5 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-lambda-rust
Testing [this guide](https://aws.amazon.com/es/blogs/opensource/rust-runtime-for-aws-lambda/) to deploy some Rust in AWS Lambda.
If you need more information you can read my [AWS Lambda Functions written in Rust](https://robertohuertas.com/2018/12/02/aws-lambda-rust/) blog post where I describe all the steps I took to build and publish a Lambda Function in Rust.
## Building the crate in OSX
In order to build this project in OSX you must ensure that you have a folder called `.cargo` with a `config` file in it. This file must contain exactly this:
```sh
[target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc"
```
## Building the crate in Linux
Install the `musl-tools`:
```sh
sudo apt install musl-tools
```
Remove the `.cargo` folder if present or comment the contents of the `config` file.
## Common building steps
```sh
# this will start the build process
cargo build --release --target x86_64-unknown-linux-musl
# this will create the final zip
zip -j rust.zip ./target/x86_64-unknown-linux-musl/release/bootstrap
```