Crates.io | cloud_terrastodon_relative_location |
lib.rs | cloud_terrastodon_relative_location |
version | 0.27.0 |
created_at | 2025-04-29 19:57:06.483775+00 |
updated_at | 2025-09-18 19:46:42.588334+00 |
description | A helper for converting std::panic::Location to relative paths with displayed |
homepage | |
repository | https://github.com/AAFC-Cloud/Cloud-Terrastodon.git |
max_upload_size | |
id | 1653994 |
size | 5,867 |
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
ㄟ( ▔, ▔ )ㄏ