#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

#823 in Rust patterns

Download history 217/week @ 2024-08-14 198/week @ 2024-08-21 545/week @ 2024-08-28 690/week @ 2024-09-04 2069/week @ 2024-09-11 2293/week @ 2024-09-18 2477/week @ 2024-09-25 3545/week @ 2024-10-02 4464/week @ 2024-10-09 10005/week @ 2024-10-16 9297/week @ 2024-10-23 10192/week @ 2024-10-30 10541/week @ 2024-11-06 8798/week @ 2024-11-13 9413/week @ 2024-11-20 16865/week @ 2024-11-27

47,827 downloads per month
Used in 136 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

~240–680KB
~16K SLoC