#error #ruspiro #bare-metal

no-std ruspiro-error

Definition of the Error trait and error handling related types to make error handling more convinient. This is some kind of the duplicate of the rust std::error::* stuff which does not work in #![no_std] environments. However, it is assumed that if this crate is used as a dependencie there will be an allocator provided when building the final binary.

2 releases

0.1.1 Apr 21, 2021
0.1.0 Sep 26, 2020

#819 in Embedded development

Download history 17/week @ 2024-09-23 22/week @ 2024-09-30

57 downloads per month
Used in ruspiro-mailbox

MIT/Apache

12KB

RusPiRo Error Handling traits

Providing the Error trait like std::error::Error for ![no_std] embedded environments that come at least with an allocator implementation.

Travis-CI Status Latest Version Documentation License

Usage

To use the crate just add the following dependency to your Cargo.toml file:

[dependencies]
ruspiro-error = "0.1.1"

Dependency

When using this crate to build a final binary the crate graph need to contain an allocator implementation. The one used within the RusPiRo family of crates is ruspiro-allocator

License

Licensed under Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) or MIT (LICENSE-MIT or http://opensource.org/licenses/MIT)) at your choice.

No runtime deps