sharksforarms / deku

Declarative binary reading and writing: bit-level, symmetric, serialization/deserialization
Apache License 2.0
1.14k stars 55 forks source link

Add support for error_in_core in a no_std environment #463

Closed stgraham2000 closed 3 months ago

stgraham2000 commented 3 months ago

Currently in a no_std environment the DekuError does not implement the core::error::Error trait. This means packages like Anyhow and others that relay on core::error::Error being implemented can not coerce a DekuError.

stgraham2000 commented 3 months ago

@sharksforarms, I noticed that this is going to be stabilized in Rust 1.81 on September 5th. I should have looked at this. We probably should revert this commit in master because the extra feature just clutters the code base and existing features.