We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 134d86d commit 3d9000cCopy full SHA for 3d9000c
src/env_var.rs
@@ -1,12 +1,24 @@
1
use std::collections::HashSet;
2
use std::env;
3
+use std::ffi::OsStr;
4
use std::path::PathBuf;
5
use std::process::Command;
6
7
use crate::process;
8
9
pub const RUST_RECURSION_COUNT_MAX: u32 = 20;
10
11
+trait ProcessEnvs {
12
+ type Item;
13
+ type Iter: Iterator<Item = Self::Item>;
14
+
15
+ fn get_envs(&self) -> Self::Iter;
16
+ fn env<K, V>(&mut self, key: K, val: V) -> &mut Self
17
+ where
18
+ K: AsRef<OsStr>,
19
+ V: AsRef<OsStr>;
20
+}
21
22
#[allow(unused)]
23
pub fn append_path(name: &str, value: Vec<PathBuf>, cmd: &mut Command) {
24
let old_value = process().var_os(name);
0 commit comments