#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

#744 in Rust patterns

Download history 242/week @ 2024-08-17 213/week @ 2024-08-24 608/week @ 2024-08-31 1992/week @ 2024-09-07 1389/week @ 2024-09-14 2631/week @ 2024-09-21 2967/week @ 2024-09-28 3769/week @ 2024-10-05 7773/week @ 2024-10-12 9711/week @ 2024-10-19 9518/week @ 2024-10-26 10091/week @ 2024-11-02 9501/week @ 2024-11-09 9639/week @ 2024-11-16 10049/week @ 2024-11-23 17651/week @ 2024-11-30

48,550 downloads per month
Used in 137 crates (10 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

~235–670KB
~16K SLoC