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

Use an if for the compile time flag instead of removing all items #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sosthene-nitrokey
Copy link
Contributor

Fixes #14 and #15

@robin-nitrokey
Copy link
Member

Currently, the crate docs claim:

inactive log levels of libraries are completely compiled out.

This should be updated if this change is merged. As this is a fundamental change, I’m leaving this review to @nickray.

@robin-nitrokey robin-nitrokey removed their request for review June 13, 2023 18:50
@sosthene-nitrokey
Copy link
Contributor Author

We could check in the final binary but I'd be very surprised that the compiler fails to optimize this change away.

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.

"use" the arguments even when the log features are disabled
2 participants