diff options
Diffstat (limited to 'release')
| -rw-r--r-- | release/src/cargo.rs | 6 |
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. |
| 18 | pub 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. | ||
| 18 | pub fn run_with_env<I, K, V>(args: &[String], cwd: &Path, envs: I, capture: bool) -> Result<String> | 24 | pub fn run_with_env<I, K, V>(args: &[String], cwd: &Path, envs: I, capture: bool) -> Result<String> |
| 19 | where | 25 | where |
| 20 | I: IntoIterator<Item = (K, V)> + core::fmt::Debug, | 26 | I: IntoIterator<Item = (K, V)> + core::fmt::Debug, |
