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

Function install_zig_interactive

crates/cargo-lambda-build/src/zig.rs:32–39  ·  view source on GitHub ↗

Install Zig using a choice prompt.

(options: Vec<InstallOption>)

Source from the content-addressed store, hash-verified

30
31/// Install Zig using a choice prompt.
32pub async fn install_zig_interactive(options: Vec<InstallOption>) -> Result<()> {
33 let choice = choose_option("Pick an option to install it:", options);
34
35 match choice {
36 Ok(choice) => choice.install().await.map(|_| ()),
37 Err(err) => Err(err).into_diagnostic(),
38 }
39}
40
41pub async fn check_installation() -> Result<ZigInfo> {
42 if let Ok((path, run_modifiers)) = Zig::find_zig() {

Callers 1

check_installationFunction · 0.85

Calls 2

choose_optionFunction · 0.85
installMethod · 0.80

Tested by

no test coverage detected