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

feat: support cfg(feature = "name") attributes #7097

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

Conversation

michaeljklein
Copy link
Contributor

Description

Problem*

Resolves #6963

Summary*

Additional Context

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

michaeljklein and others added 2 commits January 16, 2025 15:50
…ribute kind, add enum for cfg attributes w/ 'Feature' variant, add 'cfg'/'feature' keywords, add attribute parsing for 'cfg(..)', test parsing 'cfg(..)', ensure parsing 'cfg' always gives non-empty feature name, add frontend tests for (disabled) 'cfg' attributes on functions/globals/statements/use, wip implementing
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.

Add feature flags to Noir
1 participant