(url: &str)
| 470 | } |
| 471 | |
| 472 | fn 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 |
no test coverage detected