11 releases (stable)

2.3.1 Jan 21, 2022
2.3.0 May 19, 2021
2.2.0 Apr 29, 2021
2.0.2 Sep 21, 2020
0.1.2 Jan 23, 2020

#106 in Rust patterns

Download history 24051/week @ 2022-08-12 25333/week @ 2022-08-19 23861/week @ 2022-08-26 22742/week @ 2022-09-02 25122/week @ 2022-09-09 24708/week @ 2022-09-16 26385/week @ 2022-09-23 24888/week @ 2022-09-30 27153/week @ 2022-10-07 28122/week @ 2022-10-14 26652/week @ 2022-10-21 27576/week @ 2022-10-28 29911/week @ 2022-11-04 27558/week @ 2022-11-11 24733/week @ 2022-11-18 21281/week @ 2022-11-25

108,481 downloads per month
Used in 395 crates (3 directly)

BSL-1.0 license

18KB
424 lines

error-code

Crates.io Documentation Build

Alternative Error for Rust.

It's goal is to be able to provide simplified Error which would work in no_std environment

Features

  • std - enables std::error::Error implementation

Categories

Library introduces the concept of categories, similar to that of C++ std::error_category. Each category can be used to describe set of integral error codes.

Following implementations are builtin:

  • Posix - POSIX category. To access integer constants use libc
  • System - System category. To access integer constants use libc on unix, and winapi on Windows
  • Plain - Plain errors without any category.

Dependencies

~52KB