Skip to content

Commit 2c9055b

Browse files
committed
tweeks
1 parent 6a249a3 commit 2c9055b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

CHANGELOG.md

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

3-
* port from `python3.6` runtime to `rust` which runs on the `provided` runtime under the covers
3+
* Switch the Lambda `python3.6` runtime to `rust` ( which runs on the `provided` runtime under the covers )
44
* 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
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.
99

1010
# ⚡ 0.1.7
1111

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
const { spawnSync } = require('child_process');
88
const path = require('path');
99

10+
const DEFAULT_DOCKER_TAG = '0.2.0-rust-1.31.0';
1011
const RUST_RUNTIME = 'rust';
1112
const BASE_RUNTIME = 'provided';
1213
const NO_OUTPUT_CAPTURE = { stdio: ['ignore', process.stdout, process.stderr] };
@@ -25,7 +26,7 @@ class RustPlugin {
2526
this.custom = Object.assign(
2627
{
2728
cargoFlags: "",
28-
dockerTag: "0.2.0-rust-1.31.0"
29+
dockerTag: DEFAULT_DOCKER_TAG
2930
},
3031
this.serverless.service.custom && this.serverless.service.custom.rust || {}
3132
);
@@ -94,7 +95,6 @@ class RustPlugin {
9495
return;
9596
}
9697
rustFunctionsFound = true;
97-
// reserve `cargoPackage` for future support of cargo workspaces
9898
let [cargoPackage, binary] = func.handler.split('.');
9999
if (binary == undefined) {
100100
binary = cargoPackage;
@@ -105,12 +105,12 @@ class RustPlugin {
105105
this.serverless.cli.log(`Dockerized Rust build encountered an error: ${res.error} ${res.status}.`);
106106
throw new Error(res.error);
107107
}
108-
// If all is well we should now have find a packaged compiled binary under target/lambda/release.
108+
// If all went well, we should now have find a packaged compiled binary under `target/lambda/release`.
109109
//
110110
// The AWS "provided" lambda runtime requires executables to be named
111111
// "bootstrap" -- https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html
112112
//
113-
// To avoid artifact name conflicts when we potentially have more than one function
113+
// To avoid artifact nameing conflicts when we potentially have more than one function
114114
// we leverage the ability to declare a package artifact directly
115115
// see https://serverless.com/framework/docs/providers/aws/guide/packaging/
116116
// for more information

0 commit comments

Comments
 (0)