(
scope: Construct,
resourceName: string,
props?: RustExtensionProps,
)
| 75 | */ |
| 76 | export 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 | } |
nothing calls this directly
no test coverage detected