-
Notifications
You must be signed in to change notification settings - Fork 457
Use cfg_if to simplify some cfgs #270
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
Comments
I vaguely recall some issue with cfg-if as a reason to not use it. But I can't find it now. So I think it's OK. |
Looked at this briefly last night and I ran into rust-lang/cfg-if#8. This greatly limits the usefulness of |
Oh yeah pretty sure that was the issue. Maybe cfg-if can be fixed? |
Yeah it would require some reworking, but I don't see why you couldn't also allow a |
I'm going to close this: it's rare that cfg's are paired in |
The cfg_if crate is
no_std
and use of thecfg_if!
macro could simplify some of the code where we have a pattern like the following:The text was updated successfully, but these errors were encountered: