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
2
+
3
+
* Switch from supporting the Lambda `python3.6` runtime to a new ✨ `rust` runtime ✨ ( 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
+
* you no longer have to be explicit about function binary to include, this plugin generates and configures the artifact (zip) file for you
6
+
* you no longer have to set default exclusion rules
7
+
* you can deploy a `rust` runtime function side by side with other serverless runtime functions
8
+
within the same service, to facilitate experimentation and learning.
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
+26-29Lines changed: 26 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,40 +7,32 @@
7
7
8
8
Install the plugin with npm
9
9
10
-
```bash
11
-
$ npm install serverless-rust@0.1.7
10
+
```sh
11
+
$ npm install serverless-rust
12
12
```
13
13
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.
14
+
💡 This serverless plugin assumes you are building Rustlang lambdas targetting the AWS Lambda "provided" runtime. The [AWS Lambda Rust Runtime](https://github.com/awslabs/aws-lambda-rust-runtime) makes this easy.
15
15
16
16
Add the following to your serverless project's `serverless.yml` file
17
17
18
18
```yaml
19
19
service: demo
20
20
provider:
21
21
name: aws
22
-
# crowbar and lando integrate with aws lambda's python3.6 runtime
23
-
runtime: python3.6
22
+
runtime: rust
24
23
plugins:
25
24
# this adds informs servleress to use
26
25
# the serverless-rust plugin
27
26
- serverless-rust
28
-
# the follow is recommended for small deployment sizes
29
-
# (faster uploads)
27
+
# creates one artifact for each function
30
28
package:
31
29
individually: true
32
-
exclude:
33
-
- ./**
34
30
functions:
35
31
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
32
+
# handler value syntax is `{cargo-package}.{bin-name}`
33
+
# or `{bin-name}` for short when you are building a
34
+
# default bin for a given package.
35
+
handler: your-crate-name
44
36
events:
45
37
- http:
46
38
path: /test
@@ -53,14 +45,13 @@ functions:
53
45
You can optionally adjust the default settings of the dockerized build env using
54
46
a custom section of your serverless.yaml configuration
55
47
56
-
57
48
```yaml
58
49
custom:
59
-
# this section customizes the default
50
+
# this section allows for customization of the default
60
51
# serverless-rust plugin settings
61
52
rust:
62
53
# flags passed to cargo
63
-
cargoFlags: '--features lando/python3-sys'
54
+
cargoFlags: '--features enable-awesome'
64
55
# custom docker tag
65
56
dockerTag: 'some-custom-tag'
66
57
```
@@ -77,15 +68,11 @@ functions:
77
68
test:
78
69
rust:
79
70
# 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
71
+
cargoFlags: '--features enable-awesome'
72
+
# handler value syntax is `{cargo-package}.{bin-name}`
73
+
# or `{bin-name}` for short when you are building a
74
+
# default bin for a given package.
75
+
handler: your-crate-name
89
76
events:
90
77
- http:
91
78
path: /test
@@ -95,6 +82,16 @@ functions:
95
82
96
83
## 🏗️ serverless templates
97
84
85
+
### 0.2.*
86
+
87
+
* a minimal echo application - https://github.com/softprops/serverless-aws-rust
88
+
89
+
### 0.1.*
90
+
91
+
Older versions targeted the python 3.6 AWS Lambda runtime and [rust crowbar](https://github.com/ilianaw/rust-crowbar) and [lando](https://github.com/softprops/lando) applications
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