-
Notifications
You must be signed in to change notification settings - Fork 445
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
add cfg_flags for boolean feature flags #321
Conversation
Signed-off-by: Gregg Reynolds <601396+mobileink@users.noreply.github.com>
Signed-off-by: Gregg Reynolds <601396+mobileink@users.noreply.github.com>
Thanks for the change, I was wondering if that needs an actual extra attribute. I haven't tested but it sounds like this could be done in |
I tried to use rustc_flags but could not make it work. Maybe I'm doing something wrong? |
Would you be willing to go ahead and adapt this PR to actually add cfg_options and cfg_flags and emit a warning when using the old options (noting that they are marked for deprecation, and how to switch to new options)? This is a way larger change so I would understand if you rather not dig into that rabbit hole. |
On Tue, Jun 2, 2020 at 3:53 AM Damien Martin-Guillerez < ***@***.***> wrote:
Would you be willing to go ahead and adapt this PR to actually add
cfg_options and cfg_flags and emit a warning when using the old options
(noting that they are marked for deprecation, and how to switch to new
options)?
Sure, I'd be happy to do that, but I might not be able to get to it this
week.
… This is a way larger change so I would understand if you rather not dig
into that rabbit hole.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#321 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAES2NHVYBJP4BLNR7HAFNLRUS4X3ANCNFSM4NNFA4FQ>
.
|
Would it make more sense to only add |
Any updates here? In Damien's absence, I wonder if @illicitonion might have some thoughts here? |
Sorry, I'm struggling a bit to understand the use-case here that isn't met by the existing |
Add support for boolean config flags. --cfg 'feature="foo"' does not work; --cfg foo does. This change supports the latter.
Signed-off-by: Gregg Reynolds 601396+mobileink@users.noreply.github.com