Function re_memory::backtrace_native::shorten_source_file_path
source · fn shorten_source_file_path(path: &Path) -> String
Expand description
Anonymize a path to a Rust source file from a callstack.
Example input:
/Users/emilk/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.24.1/src/runtime/runtime.rs
crates/rerun/src/main.rs
/rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs