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

Put formatting as much as possible behind feature flags #13

Open
2 tasks
thvdveld opened this issue Mar 13, 2024 · 0 comments
Open
2 tasks

Put formatting as much as possible behind feature flags #13

thvdveld opened this issue Mar 13, 2024 · 0 comments
Labels
optimization Something can be optimized

Comments

@thvdveld
Copy link
Owner

It is known that formatting, and deriving Debug, adds bloat to the binary. Since this library is targeting embedded devices, we should not derive Debug, unless we are on std.

  • Derive Debug only when on std or when log feature is enabled.
  • Derive defmt::Format when defmt feature is enabled.
@thvdveld thvdveld added the optimization Something can be optimized label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Something can be optimized
Projects
None yet
Development

No branches or pull requests

1 participant