| Crates.io | cloneable_errors |
| lib.rs | cloneable_errors |
| version | 2.3.0 |
| created_at | 2024-12-24 00:11:34.921267+00 |
| updated_at | 2025-09-04 13:31:42.783608+00 |
| description | A library similar to anyhow, that allows the errors to be cloned, shared, cached and even sent over the network |
| homepage | |
| repository | https://github.com/mini-bomba/cloneable_errors |
| max_upload_size | |
| id | 1493544 |
| size | 44,384 |
cloneable_errors cratethis is basically the core functionality of anyhow, but written from scratch, in safe rust.
this library was previously an internal error_handling crate in DeArrow Browser
and was licensed together with the entire project under AGPL.
it was spun off into it's own public crate and is now licensed under MIT.
anyhow errors are not cloneable - caching them is annoying, especially if you want to add more context later on
this crate aims to be a simpler, hopefully less annoying alternative if you do the things I do
serde feature)anyhow feature)serde: derives (de)serialization traits for the SerializableError structbincode: derives Encode and Decode traits for the SerializableError structanyhow: adds compatibility functions and traits for anyhow error stacks (using those will flatten the errors stacks into SerializableErrors)extensions: enables ErrorContext objects to hold arbitrary "extension" attributes (side effect: increases the size of that struct)