AkiyukiOkayasu / pacmog

PCM decoding library for embedded systems
Apache License 2.0
6 stars 3 forks source link

Replace `anyhow` with `thiserror` #52

Closed AkiyukiOkayasu closed 3 weeks ago

AkiyukiOkayasu commented 3 weeks ago

The anyhow crate works with no_std, but not with no_alloc. As pointed out in the https://github.com/AkiyukiOkayasu/pacmog/pull/49, this is a significant issue for using it in an embedded environment. This PR is a proof of concept to make error handling work with no_alloc.
thiserror does not work with no_std at the moment. The error_in_core feature will stabilize in Rust 1.81, and it is hoped that it will also work with no_std. https://github.com/dtolnay/thiserror/pull/304

Currently, a forked version of thiserror is being used.