Skip to main content

Module util

Module util 

Source

Re-exportsยง

use std::path::PathBuf; ๐Ÿ”’
use crate::command::Command; ๐Ÿ”’
use crate::command::CompletedProcess; ๐Ÿ”’
use crate::env::env_var; ๐Ÿ”’
use crate::path_helpers::cwd; ๐Ÿ”’

Functionsยง

handle_failed_output ๐Ÿ”’
If a given Command failed (as indicated by its CompletedProcess), verbose print the executed command, failure location, output status and stdout/stderr, and abort the process with exit code 1.
print_command_output ๐Ÿ”’
set_host_compiler_dylib_path ๐Ÿ”’
Set the runtime library paths as needed for running the host compilers (rustc/rustdoc/etc).
verbose_print_command ๐Ÿ”’