Skip to content

Commit 6c21012

Browse files
author
github-actions
committed
chore(release): v0.0.22
1 parent a2d4580 commit 6c21012

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

cargolambdacdk/BundlingOptions.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,9 @@ type BundlingOptions struct {
5656
// Default: - false.
5757
//
5858
ForcedDockerBundling *bool `field:"optional" json:"forcedDockerBundling" yaml:"forcedDockerBundling"`
59+
// Specify the Cargo Build profile to use.
60+
// Default: - `release`.
61+
//
62+
Profile *string `field:"optional" json:"profile" yaml:"profile"`
5963
}
6064

cargolambdacdk/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,26 @@ new RustFunction(this, 'Rust function', {
8787
});
8888
```
8989

90+
### Cargo Build profiles
91+
92+
Use the `profile` option if you want to build with a different Cargo profile that's not `release`:
93+
94+
```go
95+
import { RustFunction } from 'cargo-lambda-cdk';
96+
97+
new RustFunction(this, 'Rust function', {
98+
manifestPath: 'path/to/package/directory/with/Cargo.toml',
99+
bundling: {
100+
profile: 'dev'
101+
},
102+
});
103+
```
104+
90105
### Cargo Lambda Build flags
91106

92107
Use the `cargoLambdaFlags` option to add additional flags to the `cargo lambda build` command that's executed to bundle your function. You don't need to use this flag to set options like the target architecture or the binary to compile, since the construct infers those from other props.
93108

94-
If these flags include a `--target` flag, it will override the `architecture` option. If these flags include a `--release` or `--debug` flag, it will override the CDK's debug option.
109+
If these flags include a `--target` flag, it will override the `architecture` option. If these flags include a `--release` or `--profile` flag, it will override the release or any other profile specified.
95110

96111
```go
97112
import { RustFunction } from 'cargo-lambda-cdk';
9.64 MB
Binary file not shown.

cargolambdacdk/jsii/jsii.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
constructs "github.com/aws/constructs-go/constructs/v10/jsii"
1414
)
1515

16-
//go:embed cargo-lambda-cdk-0.0.21.tgz
16+
//go:embed cargo-lambda-cdk-0.0.22.tgz
1717
var tarball []byte
1818

1919
// Initialize loads the necessary packages in the @jsii/kernel to support the enclosing module.
@@ -24,5 +24,5 @@ func Initialize() {
2424
constructs.Initialize()
2525

2626
// Load this library into the kernel
27-
_jsii_.Load("cargo-lambda-cdk", "0.0.21", tarball)
27+
_jsii_.Load("cargo-lambda-cdk", "0.0.22", tarball)
2828
}

cargolambdacdk/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.21
1+
0.0.22

0 commit comments

Comments
 (0)