Add a feature for defmt support #450
Labels
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-bitflags/bitflags#450
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, it would be really handy to have a feature on the crate to opt into defmt support so that bitflags structs can be printed to trace with defmt. Thanks!
Hi @petekubiak 👋
defmtis unfortunately a bit tricky to support in libraries, but we could look at adding support inbitflags_derivefor it.Thanks for your reply! I have an idea for how to do this, when I find a bit of time I'll test it out and raise a PR if it works.
Might be helpful here, I've had good luck using https://github.com/t-moe/defmt-or-log/tree/master/defmt-or-log in my libraries to have switchable log or defmt support.