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

Function binary_name_or_default

crates/cargo-lambda-deploy/src/lib.rs:134–139  ·  view source on GitHub ↗
(config: &Deploy, name: &str)

Source from the content-addressed store, hash-verified

132}
133
134pub(crate) fn binary_name_or_default(config: &Deploy, name: &str) -> String {
135 config
136 .binary_name
137 .clone()
138 .unwrap_or_else(|| name.to_string())
139}
140
141#[cfg(test)]
142mod tests {

Callers 2

newMethod · 0.85
load_archiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected