Skip to main content

Crate cloud_terrastodon_relative_location

Crate cloud_terrastodon_relative_location 

Source
Expand description

A helper for converting std::panic::Location to relative paths with displayed.

When crossing crate boundaries calling a function annotated with

#[track_caller]

the value returned by

std::panic::Location::caller();

uses an absolute path.

This crate strips the path segments that are also present in the path of this crate at build time.

This means it probably won’t work outside of building Cloud Terrastodon

ㄟ( ▔, ▔ )ㄏ

Structs§

RelativeLocation