Rust rust-pattern Projects
-
wherr
Enhance Rust errors with file and line details using the `#[wherr]` macro for clearer debugging.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I've added a branch for this: https://github.com/joelonsql/wherr/tree/track_caller
`src/lib.rs` is your code copy/pasted, with the addition of `impl<'a, E: StdError + 'a> From for Box` like suggested (and also just `Send`).
I've also added a `fn inner_error<'a>(&'a self) -> &'a (dyn StdError + 'a);`, but not sure this is the proper way.
I can't wrap my head around how to match on the inner error though, see `examples/matching_inner.rs`:
match my_error_wrapped().unwrap_err() {
NOTE:
The open source projects on this list are ordered by number of github stars.
The number of mentions indicates repo mentiontions in the last 12 Months or
since we started tracking (Dec 2020).
Index
Project | Stars | |
---|---|---|
1 | wherr | 49 |
2 | bounded-static | 8 |
Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com