#error #error-handling

no-std rancor

Scalable and efficient error handling without type composition

8 releases

0.1.0-pre8 Jan 1, 2024
0.1.0-pre7 Dec 15, 2023
0.1.0-pre6 Dec 12, 2023
0.1.0-pre5 Dec 11, 2023
0.1.0-pre1 Nov 4, 2023

#739 in Rust patterns

Download history 30/week @ 2023-11-06 22/week @ 2023-11-13 28/week @ 2023-11-20 18/week @ 2023-11-27 15/week @ 2023-12-04 267/week @ 2023-12-11 63/week @ 2023-12-18 85/week @ 2023-12-25 122/week @ 2024-01-01 92/week @ 2024-01-08 70/week @ 2024-01-15 77/week @ 2024-01-22 92/week @ 2024-01-29 70/week @ 2024-02-05 147/week @ 2024-02-12 345/week @ 2024-02-19

663 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–780KB
~19K SLoC