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

Method install

crates/cargo-lambda-build/src/zig.rs:170–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168 }
169
170 pub async fn install(self) -> Result<()> {
171 let pb = Progress::start("Installing Zig...");
172 let usage = self.usage().split(' ').collect::<Vec<_>>();
173 let usage = usage.as_slice();
174 let result = silent_command(usage[0], &usage[1..usage.len()]).await;
175
176 match result {
177 Ok(_) => {
178 pb.finish("Zig installed");
179 Ok(())
180 }
181 Err(err) => {
182 pb.finish("Zig installation failed");
183 Err(err).into_diagnostic()
184 }
185 }
186 }
187}
188
189pub fn install_options() -> Vec<InstallOption> {

Callers 2

install_zig_interactiveFunction · 0.80
check_installationFunction · 0.80

Calls 3

silent_commandFunction · 0.85
usageMethod · 0.80
finishMethod · 0.80

Tested by

no test coverage detected