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: CHANGELOG.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# 0.1.4 (unreleased)
1
+
# ⚡ 0.1.4
2
2
3
-
* bump lambda-rust docker version to 0.1.0-rust-1.27.2
3
+
* bump [lambda-rust](https://hub.docker.com/r/softprops/lambda-rust/) docker version to 0.1.0-rust-1.27.2, to make the new default Rust 1.27.2 (the latest release of Rust at this time)
4
4
* speed up deployments by ~3.2 seconds by disabling excludeDevDependencies. it's on by default but it's not useful for for Rust focused services
5
5
* the `custom.rust` config object can be overrided at the function level
6
6
@@ -17,19 +17,19 @@ functions:
17
17
- schedule: rate(5 minutes)
18
18
```
19
19
20
-
# 0.1.3
20
+
# ⚡ 0.1.3
21
21
22
22
* bump lambda rust docker version to 0.1.0-rust-1.27.0
23
23
24
-
# 0.1.2
24
+
# ⚡ 0.1.2
25
25
26
26
* bump lambda rust docker version to 0.1.0-rust-1.26.2
27
27
* use a polyfill for fs.copyFileSync to accomidate older versions of node on travis ci
💡 This serverless plugin assumes you are building Rustlang lambdas using the [lando](https://github.com/softprops/lando) or [crowbar](https://github.com/ilianaw/rust-crowbar) rustlang crates.
@@ -65,6 +65,34 @@ custom:
65
65
dockerTag: 'some-custom-tag'
66
66
```
67
67
68
+
### 🎨 Per function customization
69
+
70
+
If your serverless project contains multiple functions, you may sometimes
71
+
need to customize the options above at the function level. You can do this
72
+
by defining a `rust` key with the same options inline in your function
73
+
specficiation.
74
+
75
+
```yaml
76
+
functions:
77
+
test:
78
+
rust:
79
+
# function specific flags passed to cargo
80
+
cargoFlags: '--features ...'
81
+
# liblambda.handler is the default function name when
82
+
# you follow lando/crowbar conventions
83
+
handler: liblambda.handler
84
+
# the following limits the function packaging
85
+
# to just the resulting binary
86
+
package:
87
+
include:
88
+
- liblambda.so
89
+
events:
90
+
- http:
91
+
path: /test
92
+
method: GET
93
+
```
94
+
95
+
68
96
## 🏗️ serverless templates
69
97
70
98
* lando api gateway application - https://github.com/softprops/serverless-lando
0 commit comments