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
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,12 @@
1
+
# ⚡ 0.2.0 (unreleased)
2
+
3
+
* port from `python3.6` runtime to `rust` which runs on the `provided` runtime under the covers
4
+
* you can now deploy independent functions with `npx serverless deploy function -f func-name`
5
+
* no longer have to be explicit about function binary to include, this plugin generates and configures the artifact (zip) file for you
6
+
* no longer have to set default exclusion rules
7
+
* can deploy `rust` runtime function side by side with other serverless runtime functions
8
+
within the same service
9
+
1
10
# ⚡ 0.1.7
2
11
3
12
* bump [lambda-rust](https://hub.docker.com/r/softprops/lambda-rust/) docker version to 0.1.0-rust-1.30.1, to make the new default Rust 1.30.1 (the latest release of Rust at this time)
Copy file name to clipboardExpand all lines: README.md
+20-25Lines changed: 20 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
Install the plugin with npm
9
9
10
10
```bash
11
-
$ npm install serverless-rust@0.1.6
11
+
$ npm install serverless-rust
12
12
```
13
13
14
14
💡 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.
@@ -20,27 +20,20 @@ service: demo
20
20
provider:
21
21
name: aws
22
22
# crowbar and lando integrate with aws lambda's python3.6 runtime
23
-
runtime: python3.6
23
+
runtime: rust
24
24
plugins:
25
25
# this adds informs servleress to use
26
26
# the serverless-rust plugin
27
27
- serverless-rust
28
-
# the follow is recommended for small deployment sizes
29
-
# (faster uploads)
28
+
# creates one artifact for each function
30
29
package:
31
30
individually: true
32
-
exclude:
33
-
- ./**
34
31
functions:
35
32
test:
36
-
# liblambda.handler is the default function name when
37
-
# you follow lando/crowbar conventions
38
-
handler: liblambda.handler
39
-
# the following limits the function packaging
40
-
# to just the resulting binary
41
-
package:
42
-
include:
43
-
- liblambda.so
33
+
# handler value syntax is `{cargo-package}.{bin-name}`
34
+
# or `{bin-name}` for short when you are building a
35
+
# default bin for a given package.
36
+
handler: your-crate-name
44
37
events:
45
38
- http:
46
39
path: /test
@@ -56,11 +49,11 @@ a custom section of your serverless.yaml configuration
56
49
57
50
```yaml
58
51
custom:
59
-
# this section customizes the default
52
+
# this section allows for customization of the default
60
53
# serverless-rust plugin settings
61
54
rust:
62
55
# flags passed to cargo
63
-
cargoFlags: '--features lando/python3-sys'
56
+
cargoFlags: '--features enable-awesome'
64
57
# custom docker tag
65
58
dockerTag: 'some-custom-tag'
66
59
```
@@ -77,15 +70,11 @@ functions:
77
70
test:
78
71
rust:
79
72
# 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
73
+
cargoFlags: '--features enable-awesome'
74
+
# handler value syntax is `{cargo-package}.{bin-name}`
75
+
# or `{bin-name}` for short when you are building a
76
+
# default bin for a given package.
77
+
handler: your-crate-name
89
78
events:
90
79
- http:
91
80
path: /test
@@ -95,6 +84,12 @@ functions:
95
84
96
85
## 🏗️ serverless templates
97
86
87
+
### 0.2.*
88
+
89
+
* a minimal echo application - https://github.com/softprops/serverless-aws-rust
90
+
91
+
### 0.1.*
92
+
98
93
* lando api gateway application - https://github.com/softprops/serverless-lando
99
94
* multi function lando api gateway application - https://github.com/softprops/serverless-multi-lando
0 commit comments