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

Method from

crates/cargo-lambda-metadata/src/cargo/build.rs:104–110  ·  view source on GitHub ↗
(s: String)

Source from the content-addressed store, hash-verified

102
103impl From<String> for CompilerOptions {
104 fn from(s: String) -> Self {
105 match s.to_lowercase().as_str() {
106 "cargo" => Self::Cargo(CargoCompilerOptions::default()),
107 "cross" => Self::Cross,
108 _ => Self::CargoZigbuild,
109 }
110 }
111}
112
113impl CompilerOptions {

Callers

nothing calls this directly

Calls 3

CargoClass · 0.85
as_strMethod · 0.80
to_lowercaseMethod · 0.80

Tested by

no test coverage detected