#error #error-handling #composition #scalable #introspection #programmatic #most

no-std rancor

Scalable and efficient error handling without type composition

9 releases

0.1.0-pre8 Jan 1, 2024
0.1.0-pre7 Dec 15, 2023
0.1.0-pre1 Nov 4, 2023
0.1.0-alpha.9 Mar 30, 2024

#1054 in Rust patterns

Download history 1/week @ 2024-01-16 2/week @ 2024-01-23 2/week @ 2024-01-30 3/week @ 2024-02-06 28/week @ 2024-02-13 44/week @ 2024-02-20 139/week @ 2024-02-27 28/week @ 2024-03-05 46/week @ 2024-03-12 262/week @ 2024-03-19 187/week @ 2024-03-26 387/week @ 2024-04-02 535/week @ 2024-04-09 67/week @ 2024-04-16 93/week @ 2024-04-23 113/week @ 2024-04-30

1,055 downloads per month

MIT license

24KB
515 lines

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

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

Dependencies

~335–790KB
~19K SLoC