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

Add new import macro prototype. #1142

Merged
merged 3 commits into from
Feb 18, 2022
Merged

Conversation

cfredric
Copy link
Contributor

This PR implements the experimental import macro discussed in #1008 and #1013. This macro is the compiler-side of the changes required to do this renaming, so that the compiler looks for the crate using the correct name.

The macro reads two environment variables, in order to be aware of whether renaming is turned on for this repository, and if so, which directory is considered "third-party" (and therefore should not be renamed).

rust/private/rustc.bzl Outdated Show resolved Hide resolved
Copy link
Member

@hlopko hlopko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!

@hlopko hlopko merged commit 2f5253f into bazelbuild:main Feb 18, 2022
@cfredric cfredric deleted the import_macro_only branch April 20, 2022 18:03
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.

None yet

3 participants