Skip to content

Commit 83dc93d

Browse files
committed
Readme review/subedits
1 parent 99b126e commit 83dc93d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,12 @@ The binary has to be compiled for the target architecture and the runtime of the
8181
- Runtimes: _Amazon Linux 2_ and _Amazon Linux 2023_
8282
- Architectures: _x86_64_ and _arm64_
8383

84-
Recommended targets:
84+
Recommended `cargo build` targets:
8585
- Amazon Linux 2 / x86_64: `x86_64-unknown-linux-musl`
8686
- Amazon Linux 2 / arm64: `aarch64-unknown-linux-musl`
8787
- Amazon Linux 2023 / x86_64: `x86_64-unknown-linux-gnu`, `x86_64-unknown-linux-musl`
8888
- Amazon Linux 2023 / arm64: `aarch64-unknown-linux-gnu`, `aarch64-unknown-linux-musl`
8989

90-
AWS Lambda fails with `Runtime.InvalidEntrypoint` exception if the target does not match the selected platform, e.g. id deploying _x86_64_ to _arm64_ architecture.
91-
9290
The following script builds and deploys a Rust executable to an existing Lambda function.
9391
Replace the variable parts of the script with your values before running it from the project root.
9492

@@ -103,6 +101,8 @@ cp ./target/$target/release/$crate ./bootstrap && zip lambda.zip bootstrap && rm
103101
aws lambda update-function-code --region $region --function-name $lambda --zip-file fileb://lambda.zip
104102
```
105103

104+
AWS Lambda fails with `Runtime.InvalidEntrypoint` exception if the target does not match the selected platform, e.g. if deploying _x86_64_ to _arm64_ architecture.
105+
106106
See [Building a Custom Runtime Guide](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html) for more detailed explanations of the build and initialization process.
107107

108108
#### Cross-compilation
@@ -131,7 +131,7 @@ See [Cross-compilation](https://rust-lang.github.io/rustup/cross-compilation.htm
131131

132132
### Using `cargo lambda` command
133133

134-
If you already have Cargo Lambda installed on your machine, run the next command to build your function:
134+
If you already have [Cargo Lambda](https://www.cargo-lambda.info) installed on your machine, run the next command to build your function:
135135

136136
```bash
137137
cargo lambda build --release

0 commit comments

Comments
 (0)