2 releases
Uses new Rust 2024
new 0.1.1 | Apr 29, 2025 |
---|---|
0.1.0 | Apr 29, 2025 |
#5 in #relative
73 downloads per month
Used in cloud_terrastodon_command
5KB
cloud_terrastodon_relative_location
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
ㄟ( ▔, ▔ )ㄏ