Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace anyhow with thiserror #52

Merged
merged 15 commits into from
Aug 20, 2024
Merged

Replace anyhow with thiserror #52

merged 15 commits into from
Aug 20, 2024

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
2 of 3 checks passed
@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.

1 participant