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

Function build_profile

crates/cargo-lambda-build/src/compiler/mod.rs:31–39  ·  view source on GitHub ↗
(cargo: &'a Build, compiler: &'a CompilerOptions)

Source from the content-addressed store, hash-verified

29
30#[allow(unused_variables)]
31pub(crate) fn build_profile<'a>(cargo: &'a Build, compiler: &'a CompilerOptions) -> &'a str {
32 match cargo.profile.as_deref() {
33 Some("dev" | "test") => "debug",
34 Some("release" | "bench") => "release",
35 Some(profile) => profile,
36 None if cargo.release => "release",
37 None => "debug",
38 }
39}

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected