Skip to content

Add feature flag for defmt derives for errors #773

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

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

thelenlucas
Copy link

Added a new new non-default feature flag defmt, adds an optional dependency for defmt, a lightweight logging crate for embedded machines, allowing for debugging over RTT.

I dislike mutually exclusive features, but it might be worth adding here, as the std error's do not implement defmt::Format, as defmt is not intended to be used with the standard library. As such, they are wrapped with debug, which is inefficient, but unlikely to occur, due to the prior point. If we really wanted to break it out though, it should be trivial to do so via compile_error!.

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.

1 participant