MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda-cdk / constructor

Method constructor

src/extension.ts:77–97  ·  view source on GitHub ↗
(
    scope: Construct,
    resourceName: string,
    props?: RustExtensionProps,
  )

Source from the content-addressed store, hash-verified

75 */
76export class RustExtension extends LayerVersion {
77 constructor(
78 scope: Construct,
79 resourceName: string,
80 props?: RustExtensionProps,
81 ) {
82 const manifestPath = getManifestPath(props || {});
83 const bundling = props?.bundling ?? {};
84 const architecture = props?.architecture ?? Architecture.X86_64;
85
86 super(scope, resourceName, {
87 ...props,
88 compatibleArchitectures: [architecture],
89 code: Bundling.bundle({
90 ...bundling,
91 manifestPath,
92 binaryName: props?.binaryName,
93 lambdaExtension: true,
94 architecture,
95 }),
96 });
97 }
98}

Callers

nothing calls this directly

Calls 2

getManifestPathFunction · 0.90
bundleMethod · 0.80

Tested by

no test coverage detected