Function cargo_util::paths::join_paths

source ·
pub fn join_paths<T: AsRef<OsStr>>(paths: &[T], env: &str) -> Result<OsString>
Expand description

Joins paths into a string suitable for the PATH environment variable.

This is equivalent to std::env::join_paths, but includes a more detailed error message. The given env argument is the name of the environment variable this is will be used for, which is included in the error message.