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

Method run_build

crates/cargo-lambda-cli/src/main.rs:137–161  ·  view source on GitHub ↗
(
        build: Build,
        global: Option<PathBuf>,
        context: Option<String>,
        admerge: bool,
    )

Source from the content-addressed store, hash-verified

135 }
136
137 async fn run_build(
138 build: Build,
139 global: Option<PathBuf>,
140 context: Option<String>,
141 admerge: bool,
142 ) -> Result<()> {
143 let options = ConfigOptions {
144 names: FunctionNames::new(build.pkg_name(), build.bin_name()),
145 context,
146 global,
147 admerge,
148 };
149
150 let metadata = load_metadata(
151 build.manifest_path(),
152 build.cargo_opts.common.target_dir.as_deref(),
153 )?;
154 let args_config = Config {
155 build,
156 ..Default::default()
157 };
158
159 let mut config = load_config(&args_config, &metadata, &options)?;
160 cargo_lambda_build::run(&mut config.build, &metadata).await
161 }
162
163 async fn run_watch(
164 watch: Watch,

Callers

nothing calls this directly

Calls 7

newFunction · 0.85
load_metadataFunction · 0.85
load_configFunction · 0.85
runFunction · 0.50
pkg_nameMethod · 0.45
bin_nameMethod · 0.45
manifest_pathMethod · 0.45

Tested by

no test coverage detected