Skip to main content

Crate rolldown_std_utils

Crate rolldown_std_utils 

Source
Expand description

Only utils/extensions for the rust std library.

Traits§

OptionExt
PathBufExt
PathExt

Functions§

absolute_path_to_relative_slash
Absolute path → slash-separated path relative to cwd (stable ids / diagnostics).
absolutize_path_buf
Ensure an owned path is absolute before using it as sugar_path 3’s explicit cwd.
normalize_path_buf_to_slash
Normalize an owned path, then consume it into a /-separated UTF-8 string.
path_buf_to_slash
Consume a PathBuf into a /-separated UTF-8 string (known-UTF-8 invariant).
pretty_type_name
relative_path_as_js_specifier
Like relative_path_to_slash, but formats a JS-style relative specifier:
relative_path_to_slash
Lexical path from base to target as a /-separated UTF-8 string.
representative_file_name_for_preserve_modules
The first one is for chunk name, the second element is used for generate absolute file name
strip_path_prefix_to_slash