Skip to content

interface: Add no_std attribute #42

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

Merged
merged 3 commits into from
Mar 19, 2025
Merged

interface: Add no_std attribute #42

merged 3 commits into from
Mar 19, 2025

Conversation

febo
Copy link
Contributor

@febo febo commented Mar 19, 2025

Problem

Currently the interface crate is no_std "friendly", but it is missing the no_std attribute. This brings the std during the link stage and prevents the program from using the nostd_panic_handler.

Solution

Add the no_std attribute to the interface crate, update the dependencies so all of them are compatible with no_std and use the nostd_panic_handler on p-token.

@febo febo marked this pull request as ready for review March 19, 2025 13:04
@febo febo requested a review from joncinque March 19, 2025 13:04
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@febo febo merged commit ef92ca0 into main Mar 19, 2025
15 checks passed
@febo febo deleted the febo/nostd-interface branch March 19, 2025 16:17
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