aboutsummaryrefslogtreecommitdiff
path: root/release/src/cargo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'release/src/cargo.rs')
-rw-r--r--release/src/cargo.rs6
1 files changed, 6 insertions, 0 deletions
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
@@ -15,6 +15,12 @@ pub struct Artifact {
15} 15}
16 16
17/// Execute cargo with the given arguments and from the specified directory. 17/// Execute cargo with the given arguments and from the specified directory.
18pub fn run(args: &[String], cwd: &Path) -> Result<()> {
19 run_with_env::<[(&str, &str); 0], _, _>(args, cwd, [], false)?;
20 Ok(())
21}
22
23/// Execute cargo with the given arguments and from the specified directory.
18pub fn run_with_env<I, K, V>(args: &[String], cwd: &Path, envs: I, capture: bool) -> Result<String> 24pub fn run_with_env<I, K, V>(args: &[String], cwd: &Path, envs: I, capture: bool) -> Result<String>
19where 25where
20 I: IntoIterator<Item = (K, V)> + core::fmt::Debug, 26 I: IntoIterator<Item = (K, V)> + core::fmt::Debug,