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
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,15 +41,17 @@ $ make build
41
41
Once the build completes, it creates two docker images:
42
42
- "aws-lambda-adapter:latest-x86_64" for x86_64.
43
43
- "aws-lambda-adapter:latest-aarch64" for arm64.
44
+
44
45
AWS Lambda Adapter binary is packaged as '/opt/bootstrap' inside each docker image. "aws-lambda-adapter:latest" is tagged to the same image as "aws-lambda-adapter:latest-x86_64".
45
46
46
47
### Compiling on macOS
47
48
48
49
If you want to install rust toolchain in your Macbook and play with the source code, you can follow the steps below.
49
-
First, install [rustup](https://rustup.rs/) if you haven't done it already. Then, add the `x86_64-unknown-linux-musl` target:
50
+
First, install [rustup](https://rustup.rs/) if you haven't done it already. Then, add targets for x86_86 and arm64:
50
51
51
52
```shell
52
53
$ rustup target add x86_64-unknown-linux-musl
54
+
$ rustup target add aarch64-unknown-linux-musl
53
55
```
54
56
55
57
And we have to install macOS cross-compiler toolchains. `messense/homebrew-macos-cross-toolchains` can be used on both Intel chip and Apple M1 chip.
And we need to inform Cargo that our project uses the newly-installed linker when building for the `x86_64-unknown-linux-musl`platform.
65
+
And we need to inform Cargo that our project uses the newly-installed linker when building for the `x86_64-unknown-linux-musl`and `aarch64-unknown-linux-musl` platforms.
64
66
Create a new directory called `.cargo` in your project folder and a new file called `config` inside the new folder.
0 commit comments