#error #error-handling #no-std

no-std rancor

Scalable and efficient error handling without type composition

13 releases

0.1.0 Sep 11, 2024
0.1.0-rc.2 Sep 9, 2024
0.1.0-pre8 Jan 1, 2024
0.1.0-pre7 Dec 15, 2023
0.1.0-alpha.9 Mar 30, 2024

#652 in Rust patterns

Download history 83/week @ 2024-07-14 34/week @ 2024-07-21 78/week @ 2024-07-28 90/week @ 2024-08-04 270/week @ 2024-08-11 218/week @ 2024-08-18 219/week @ 2024-08-25 629/week @ 2024-09-01 2107/week @ 2024-09-08 1569/week @ 2024-09-15 2492/week @ 2024-09-22 3156/week @ 2024-09-29 3588/week @ 2024-10-06 8052/week @ 2024-10-13 9655/week @ 2024-10-20 9084/week @ 2024-10-27

30,774 downloads per month
Used in 59 crates (4 directly)

MIT license

32KB
562 lines

rancor

crates.io badge docs badge license badge

Rancor provides scalable and efficient error handling without using type composition.

Documentation

  • rancor, a scalable and efficient error handling library

lib.rs:

rancor

rancor provides scalable and efficient error handling without using type composition. This makes it best-suited for situations where:

  • Programmatic error introspection is not useful
  • Functions may error, but succeed most of the time
  • Errors should provide as much useful detail as possible when emitted
  • Use cases include both no_std and targets with support for std

Features

  • alloc: Provides the BoxedError type. Enabled by default.

Dependencies

~265–720KB
~17K SLoC