From cd7a7f97c0a5e928bac7299019d4320f4efc9ba6 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Sat, 16 Aug 2025 11:16:38 +0200 Subject: fix: add back missing --- release/src/cargo.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release/src/cargo.rs b/release/src/cargo.rs index 498dfeb97..c1ed4118f 100644 --- a/release/src/cargo.rs +++ b/release/src/cargo.rs @@ -14,6 +14,12 @@ pub struct Artifact { pub executable: PathBuf, } +/// Execute cargo with the given arguments and from the specified directory. +pub fn run(args: &[String], cwd: &Path) -> Result<()> { + run_with_env::<[(&str, &str); 0], _, _>(args, cwd, [], false)?; + Ok(()) +} + /// Execute cargo with the given arguments and from the specified directory. pub fn run_with_env(args: &[String], cwd: &Path, envs: I, capture: bool) -> Result where -- cgit