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

Interface RustExtensionProps

src/extension.ts:14–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 * Properties for a RustExtension
13 */
14export interface RustExtensionProps extends LayerVersionOptions {
15 /**
16 * Bundling options
17 *
18 * @default - use default bundling options
19 */
20 readonly bundling?: BundlingOptions;
21
22 /**
23 * The name of the binary to build, in case that's different than the package's name.
24 */
25 readonly binaryName?: string;
26
27 /**
28 * Path to a directory containing your Cargo.toml file, or to your Cargo.toml directly.
29 *
30 * This will accept a directory path containing a `Cargo.toml` file (i.e. `path/to/package`), or a filepath to your
31 * `Cargo.toml` file (i.e. `path/to/Cargo.toml`). When the `gitRemote` option is provided,
32 * the `manifestPath` is relative to the root of the git repository.
33 *
34 * @default - check the current directory for a `Cargo.toml` file, and throws
35 * an error if the file doesn't exist.
36 */
37 readonly manifestPath?: string;
38
39 /**
40 * The git remote URL to clone (e.g `https://github.com/your_user/your_repo`).
41 *
42 * This repository will be cloned to a temporary directory using `git`.
43 * The `git` command must be available in the PATH.
44 */
45 readonly gitRemote?: string;
46
47 /**
48 * The git reference to checkout. This can be a branch, tag, or commit hash.
49 *
50 * If this option is not provided, `git clone` will run with the flag `--depth 1`.
51 *
52 * @default - the default branch, i.e. HEAD.
53 */
54 readonly gitReference?: string;
55
56 /**
57 * Always clone the repository if using the `gitRemote` option, even if it has already been
58 * cloned to the temporary directory.
59 *
60 * @default - clones only if the repository and reference don't already exist in the
61 * temporary directory.
62 */
63 readonly gitForceClone?: boolean;
64
65 /**
66 * The system architecture of the lambda extension
67 *
68 * @default - Architecture.X86_64
69 */
70 readonly architecture?: Architecture;
71}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected