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

Remove ios/android/wasm support for gen_rust_project deps #1684

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

P1n3appl3
Copy link
Contributor

Currently, the crates_vendor for the gen_rust_project binary uses the default list of supported platform triples. This results in the @build_bazel_apple_support repository getting unconditionally downloaded when you bazel run @rules_rust//tools/rust_analyzer:gen_rust_project, which is undesirable when you're not writing rust targeting ios.

The apple support repository is downloaded because it's referenced whenever triple_to_constraint_set is called (because it calls extra_ios_constraints). I'm not sure how exactly that's getting invoked through crates_vendor, but the easiest solution is to remove the ios entries from the supported_platform_triples list. I also took the liberty of removing wasm and android given that it's unlikely that anyone is using bazel+rust-analyzer on those platforms.

@UebelAndre
Copy link
Collaborator

For this change I think you're gonna need to regenerate dependencies by running the target you just updated.

@P1n3appl3
Copy link
Contributor Author

P1n3appl3 commented Feb 10, 2023

I've just regenerated the deps gain. @UebelAndre let me know if there are any other changes you wanted, I think this is ready to merge otherwise.

Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

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

Super sorry about missing this for so long! Looks good, thanks!

@UebelAndre UebelAndre merged commit baeb066 into bazelbuild:main Feb 10, 2023
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.

2 participants