Skip to content

Reduce number of default supported_platform_triples for crate_universe #3239

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

Merged
merged 4 commits into from
Feb 7, 2025

Conversation

UebelAndre
Copy link
Collaborator

@UebelAndre UebelAndre commented Feb 5, 2025

This should save substantial time for users of crate_universe as they don't need to do splicing for platforms they're not going to use. It's still recommended users explicitly set supported_platform_triples but my expectation with this change is that it covers most of the bases for users to still provide them with a sufficiently responsive experience compared to the 34 platforms that used to be in splicing.

@UebelAndre UebelAndre force-pushed the crate_universe_platforms branch from d8fc77e to 07dc52b Compare February 5, 2025 01:58
@UebelAndre
Copy link
Collaborator Author

@illicitonion I'm curious if this should just be a mandatory field. It impacts the lockfile so this change is gonna require everyone to repin. It previously changed anytime someone added a new platform and this would trigger another change.

You'll also notice I only updated the bzlmod extension. I think crates_vendor is fine to run all platforms as this workflow suggests updates are generally less frequent. If you object I can keep the workflows in sync.

@UebelAndre UebelAndre marked this pull request as ready for review February 5, 2025 02:34
Copy link
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Do we want to do this for WORKSPACE too?

@UebelAndre
Copy link
Collaborator Author

Do we want to do this for WORKSPACE too?

Updated!

@UebelAndre UebelAndre force-pushed the crate_universe_platforms branch from 856be91 to ad3990b Compare February 7, 2025 00:28
@UebelAndre UebelAndre enabled auto-merge February 7, 2025 00:28
@UebelAndre UebelAndre added this pull request to the merge queue Feb 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 7, 2025
@UebelAndre UebelAndre added this pull request to the merge queue Feb 7, 2025
Merged via the queue into bazelbuild:main with commit 478cef4 Feb 7, 2025
3 checks passed
@UebelAndre UebelAndre deleted the crate_universe_platforms branch February 7, 2025 02:10
github-merge-queue bot pushed a commit to dfinity/ic that referenced this pull request May 16, 2025
This lists x86-darwin as a platform supported by rules_rust. This seems
to have been removed
[upstream](bazelbuild/rules_rust#3239).
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