Skip to main content

Module util

Module util 

Source

Macrosยง

eprintln_v ๐Ÿ”’
Print only if verbose_enabled.
error ๐Ÿ”’
Print error message and flags the current process as failed.
fatal ๐Ÿ”’
Print error message and exit the current process with error code.
println_v ๐Ÿ”’
Print only if verbose_enabled.
warn ๐Ÿ”’
Print warning message.

Structsยง

DependencyManifest

Staticsยง

ERROR_PREFIX
RUN_FAILED ๐Ÿ”’
VERBOSE_LEVEL ๐Ÿ”’
WARN_PREFIX

Functionsยง

ansi_enabled
check_or_copy
check_or_create_dir_all
check_or_write
clean_value
cmd
Run the command with args, inherits stdout and stderr.
cmd_impl ๐Ÿ”’
cmd_silent
Run the command with args.
deny_warnings
dependencies
Workspace root and dependencies of manifest_path
exit
Exit the current process, with error code 102 if is_failed_run.
glob_walker
globset + walkdir
is_failed_run
Gets if the current process will exit with error code.
manifest_path_from_package
set_failed_run
Sets if the current process will exit with error code.
set_verbose ๐Ÿ”’
unix_path
Convert โ€™' paths to โ€˜/โ€™ on Windows.
verbose_enabled
Get cached --verbose or ZR_VERBOSE.
workspace_dir
workspace_manifest_paths
Workspace crates Cargo.toml paths.

Type Aliasesยง

GlobItem