Skip to main content Crate v_utils Copy item path Source pub extern crate v_utils_macros as macros;pub use other ::*;io other prelude trades utils clientside Fallback when xdg is not available - logs to stdout define_str_enum Warning : Consider using strum crate instead - this macro is likely redundant for most use cases.elog Macro for logging to both stderr and tracing debug
Usage: elog!(“message”) or elog!(“format {}”, arg) fmt_with_width install_color_eyre Installs color_eyre with frame filters that strip async runtime noise
(tokio, mio, futures_util) and test harness / panic machinery from backtraces. log Macro for logging to both stdout and tracing info
Usage: log!(“message”) or log!(“format {}”, arg) print_rolling Prints to stderr, overwriting the current line in-place (like cargo’s progress bar).
Uses \r + ANSI clear-line so the output stays on a single terminal line.
Usage: print_rolling!(“status: {}”, value) xdg_cache_dir Will create $XDG_CACHE_HOME/<crate_name>/$subpath/ (“” for no subpath; subpath is a DIR ) xdg_cache_file Will create $XDG_CACHE_HOME/<crate_name>/ and return the path to the file specified in $subpath xdg_config_dir Will create $XDG_CONFIG_HOME/<crate_name>/$subpath/ (“” for no subpath; subpath is a DIR ) xdg_config_file Will create $XDG_CONFIG_HOME/<crate_name>/ and return the path to the file specified in $subpath xdg_data_dir Will create $XDG_DATA_HOME/<crate_name>/$subpath/ (“” for no subpath; subpath is a DIR ) xdg_data_file Will create $XDG_DATA_HOME/<crate_name>/ and return the path to the file specified in $subpath xdg_runtime_dir Will create $XDG_RUNTIME_DIR/<crate_name>/$subpath/ (“” for no subpath; subpath is a DIR ) xdg_runtime_file Will create $XDG_RUNTIME_DIR/<crate_name>/ and return the path to the file specified in $subpath xdg_state_dir Will create $XDG_STATE_HOME/<crate_name>/$subpath/ (“” for no subpath; subpath is a DIR ) xdg_state_file Will create $XDG_STATE_HOME/<crate_name>/ and return the path to the file specified in $subpath