MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / curl

Function curl

scripts/publish.rs:472–485  ·  view source on GitHub ↗
(url: &str)

Source from the content-addressed store, hash-verified

470}
471
472fn curl(url: &str) -> Option<String> {
473 let output = cmd_output(
474 Command::new("curl")
475 .arg("--user-agent")
476 .arg("bytecodealliance/wasmtime auto-publish script")
477 .arg(url),
478 );
479 if !output.status.success() {
480 println!("failed to curl: {}", output.status);
481 println!("stderr: {}", String::from_utf8_lossy(&output.stderr));
482 return None;
483 }
484 Some(String::from_utf8_lossy(&output.stdout).into())
485}
486
487// Verify the current tree is publish-able to crates.io. The intention here is
488// that we'll run `cargo package` on everything which verifies the build as-if

Callers 2

publishFunction · 0.85
verify_crates_ioFunction · 0.85

Calls 4

cmd_outputFunction · 0.85
newFunction · 0.50
argMethod · 0.45
successMethod · 0.45

Tested by

no test coverage detected