Skip to content

Commit 8bec732

Browse files
committed
docs for release
1 parent 0056c6a commit 8bec732

File tree

3 files changed

+36
-8
lines changed

3 files changed

+36
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# 0.1.4 (unreleased)
1+
# 0.1.4
22

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)
44
* 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
55
* the `custom.rust` config object can be overrided at the function level
66

@@ -17,19 +17,19 @@ functions:
1717
- schedule: rate(5 minutes)
1818
```
1919
20-
# 0.1.3
20+
# 0.1.3
2121
2222
* bump lambda rust docker version to 0.1.0-rust-1.27.0
2323
24-
# 0.1.2
24+
# 0.1.2
2525
2626
* bump lambda rust docker version to 0.1.0-rust-1.26.2
2727
* use a polyfill for fs.copyFileSync to accomidate older versions of node on travis ci
2828
29-
# 0.1.1
29+
# 0.1.1
3030
3131
* fix exporting plugin
3232
33-
# 0.1.0
33+
# 0.1.0
3434
3535
* initial release

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Install the plugin with npm
99

1010
```bash
11-
$ npm install [email protected].3
11+
$ npm install [email protected].4
1212
```
1313

1414
💡 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:
6565
dockerTag: 'some-custom-tag'
6666
```
6767
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+
6896
## 🏗️ serverless templates
6997

7098
* lando api gateway application - https://github.com/softprops/serverless-lando

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-rust",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Serverless framework plugin for Rustlang applications",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)