MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / bin_name

Method bin_name

crates/cargo-lambda-metadata/src/cargo/build.rs:152–157  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

150 }
151
152 pub fn bin_name(&self) -> Option<String> {
153 if self.cargo_opts.bin.len() > 1 {
154 return None;
155 }
156 self.cargo_opts.bin.first().map(|s| s.to_string())
157 }
158
159 pub fn build_environment(&self) -> Result<Environment, MetadataError> {
160 self.env_options.lambda_environment(&HashMap::new())

Callers 3

run_buildMethod · 0.45
run_watchMethod · 0.45
print_helpFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected