vg_errortools

Crates.iovg_errortools
lib.rsvg_errortools
version0.1.0
sourcesrc
created_at2022-10-20 08:22:51.260299
updated_at2022-10-20 08:22:51.260299
descriptionHelpers for better error legibility in std/tokio io errors and error handling in main functions.
homepagehttps://github.com/VolumeGraphics/vg_errortools
repositoryhttps://github.com/VolumeGraphics/vg_errortools
max_upload_size
id692226
size8,472
rust crate owners (github:volumegraphics:rust-crate-owners)

documentation

https://docs.rs/vg_errortools

README

Documentation CI

vg_errortools - Small error utilities

This crate comprises mainly helpers for generating fat io errors - errors which carry the path of the file it failed with them. It solves the problem with not knowing which file was being processed in async/await powered logged utilities. Be aware, that the fat errors are cloning a PathBuf to store the affected file.

For more comfort in main functions a MainError is provided with a blanket implementation to allow using all errors with the ? Operator.

It's no rocket-science, but convenient.

Commit count: 9

cargo fmt