Skip to content

Conversation

@AkiyukiOkayasu
Copy link
Owner

No description provided.

@AkiyukiOkayasu AkiyukiOkayasu added the enhancement New feature or request label Aug 16, 2024
@AkiyukiOkayasu AkiyukiOkayasu changed the title Replace anyhow with thiserror-core Replace anyhow with thiserror Aug 19, 2024
@AkiyukiOkayasu
Copy link
Owner Author

The anyhow crate works with no_std, but not with no_alloc. As pointed out in the #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.
dtolnay/thiserror#304

Currently, a forked version of thiserror is being used.

@AkiyukiOkayasu AkiyukiOkayasu merged commit 792525b into main Aug 20, 2024
@AkiyukiOkayasu AkiyukiOkayasu deleted the develop branch August 20, 2024 12:20
@AkiyukiOkayasu AkiyukiOkayasu added breaking-change and removed enhancement New feature or request labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants