| Crates.io | std_utils |
| lib.rs | std_utils |
| version | 1.0.0 |
| created_at | 2025-03-23 09:26:11.599492+00 |
| updated_at | 2025-03-23 09:26:11.599492+00 |
| description | Standard utilities for Rust |
| homepage | https://github.com/LeviLovie/std_utils |
| repository | https://github.com/LeviLovie/std_utils |
| max_upload_size | |
| id | 1602497 |
| size | 13,340 |
Some common utils I add to every project
This crate contains traits tht add .anyhow() to std::result::Result<T, String>, std::result::Result<T, std::error::Error>, and Option<T>. Method returns anyhow::Result<T, anyhow::Error>.
Trait Debugging also implements .log() and .logmsg("Msg here") which uses tracing to log an error if it exists and return self, .panic() and .panicmsg() do the same but panic in case of error, .context("Msg here") and .dot() are used for backtraces, taken from anyhow_ext.