Skip to content

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

Closed
TKFRvisionOfficial wants to merge 2 commits intosmessmer:masterfrom
TKFRvisionOfficial:master
Closed

Fixing no-std support by making thiserror optional and added test#28
TKFRvisionOfficial wants to merge 2 commits intosmessmer:masterfrom
TKFRvisionOfficial:master

Conversation

@TKFRvisionOfficial
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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