(
build: Build,
global: Option<PathBuf>,
context: Option<String>,
admerge: bool,
)
| 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, |
nothing calls this directly
no test coverage detected