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
> A ⚡ [Serverless framework](https://www.serverless.com/framework/docs/) ⚡ plugin for [Rustlang](https://www.rust-lang.org/) applications 🦀
9
+
<palign="center">
10
+
A ⚡ <ahref="https://www.serverless.com/framework/docs/">Serverless framework</a> ⚡ plugin for <ahref="https://www.rust-lang.org/">Rustlang</a> applications
> 💡 The Rust Lambda runtime requires a binary named `bootstrap`. This plugin renames the binary cargo builds to `bootstrap` for you before packaging. You do **not** need to do this manually in your Cargo.toml configuration file.
60
+
> 💡 The Rust Lambda runtime requires a binary named `bootstrap`. This plugin renames the binary cargo builds to `bootstrap` for you. You do **not** need to do this manually in your `Cargo.toml` configuration file.
43
61
44
62
## 🖍️ customize
45
63
@@ -61,12 +79,14 @@ custom:
61
79
62
80
### 🥼 (experimental) local builds
63
81
64
-
While it's useful to have a build environment match your deployment
82
+
While it's useful to have a build environment that matches your deployment
65
83
environment, dockerized builds do come with some notable tradeoffs.
66
84
67
-
The external dependency on docker itself often causes friction as an added dependency to your build. Depending on the docker image limited which versions of rust you could deploy with. The docker image tracked stable rust. Some users might wish to try unstable versions early. Local builds enable that.
85
+
The external dependency on docker itself often causes friction as an added dependency to your build.
86
+
87
+
Depending on the docker image limits which versions of rust you can build with. The default docker image tracks **stable rust**. Some users might wish to try unstable versions of rust before the stabalize. Local builds enable that.
68
88
69
-
If you wish to build lambda's locally, this plugin also supports an experimental `dockerless` mode.
89
+
If you wish to build lambda's locally, use the `dockerless` configuration setting.
70
90
71
91
```diff
72
92
custom:
@@ -79,7 +99,7 @@ custom:
79
99
+ dockerless: true
80
100
```
81
101
82
-
This will build and link your lambda as a static binary that can be deployed in to the lambda execution environment as a static binary using [MUSL](https://doc.rust-lang.org/edition-guide/rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.html).
102
+
This will build and link your lambda as a static binary that can be deployed in to the lambda execution environment using [MUSL](https://doc.rust-lang.org/edition-guide/rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.html).
83
103
84
104
In order to use this mode its expected that you install the `x86_64-unknown-linux-musl` target on all platforms locally with
0 commit comments