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.
discard_panic_payload
Drops a caught panic payload without letting its destructor unwind. A nested payload from that destructor is leaked, since its destructor is just as untrusted.
normalize_path_buf
Lexically normalize an owned path, without touching the file system.
normalize_path_buf_to_slash
Normalize an owned path, then consume it into a /-separated UTF-8 string.
panic_payload_message
Returns the text of a panic payload.
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.
strip_path_prefix_to_slash