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

Create bare-bones feature system starting with feature internals #134

Open
fmease opened this issue Mar 16, 2022 · 0 comments
Open

Create bare-bones feature system starting with feature internals #134

fmease opened this issue Mar 16, 2022 · 0 comments

Comments

@fmease
Copy link
Owner

fmease commented Mar 16, 2022

Create the attribute feature that takes one argument, an identifier, representing the name of a feature. It enables a certain (language, library)feature for the current component. It may only be placed on the root module header. I am not sure if we should gate features themselves behind a flag -Zfeatures or not. rustc uses the stable/nightly distinction for this.

In the future, this attribute may be extended to accept paths of the form component.feature for enabling library features (contrary to language ones) of the given component.

If we don't require the use of -Zfeatures, this allows us to get rid of the special-casing of the distributed library core. core just needs to extend its module header like so:

;; …
;; …
@(feature internals) module
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

No branches or pull requests

1 participant