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

Fixing no-std support by making thiserror optional and added test #28

Closed
wants to merge 2 commits into from

Conversation

TKFRvisionOfficial
Copy link
Contributor

ln version 4.0 the thiserror dependency was added to the library. thiserror isn't no-std compatible, and indeed was disabled in the code using the cfg macro. Sadly it wasn't made optional in the cargo.toml which means that is always compiled, even if the std feature of binary-layout has been disabled.

@TKFRvisionOfficial TKFRvisionOfficial changed the title Fixing no-std support by making thiserror optional Fixing no-std support by making thiserror optional and added test Apr 11, 2024
@TKFRvisionOfficial
Copy link
Contributor Author

The test I added ensures compatibility with no-std by compiling to thumbv6m-none-eabi, an architecture without std support.

@smessmer smessmer mentioned this pull request Apr 13, 2024
@smessmer
Copy link
Owner

merged. Thank you.

@smessmer smessmer closed this Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants