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

Added mem dbg and fixed how no-std is defined #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LucaCappelletti94
Copy link

I have added support as an optional feature to mem-dbg, a crate to accurately measure the size of structs. I need to measure the sizes of crates using siphash as part of their structs, hence the need for this pull request.

Plus, previously you had defined the no-std attribute as:

#![cfg_attr(not(test), no_std)]

But that way, if you requested the std feature, it would not actually disable no-std - It would only do that while testing. In order to do both I changed it to:

#![cfg_attr(all(not(test), not(feature = "std")), no_std)]

Cheers!

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