anyhow-source-location

Crates.ioanyhow-source-location
lib.rsanyhow-source-location
version0.2.1
created_at2025-11-06 13:51:28.13074+00
updated_at2025-11-06 13:51:28.13074+00
descriptionTwo simple macros that make it easy to add the source location to the anyhow context errors.
homepage
repositoryhttps://github.com/work-spaces/anyhow-source-location
max_upload_size
id1919699
size3,446
Tyler (tyler-gilbert)

documentation

README

anyhow-source-location

Two simple macros for adding the source location to anyhow error contexts.

To strip the full path to the source location, add this to .cargo/config.toml

[build]
rustflags = ["--remap-path-prefix=${CARGO_MANIFEST_DIR}=."]
Commit count: 0

cargo fmt