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

Moved rust extension rules into a separate workspaces. #3007

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

UebelAndre
Copy link
Collaborator

@UebelAndre UebelAndre commented Nov 19, 2024

This change moves the bindgen, proto, and wasm_bindgen sub-packages into individual workspaces within the extensions directory. The intent is improve ease of maintenance of both core and extension Rust rules by ensuring changes to extensions have no impact on the core rules. Core rules should never depend on extensions.

Load statements should be updated according to the following table:

before after
@rules_rust//bindgen @rules_rust_bindgen//
@rules_rust//proto/prost @rules_rust_prost//
@rules_rust//proto/protobuf @rules_rust_protobuf//
@rules_rust//wasm_bindgen @rules_rust_wasm_bindgen//

closes #2882

@UebelAndre UebelAndre force-pushed the bzlmod branch 5 times, most recently from 6820db7 to dc90468 Compare November 19, 2024 16:23
@UebelAndre UebelAndre force-pushed the bzlmod branch 24 times, most recently from 08678f2 to f8a6bf3 Compare November 21, 2024 15:50
@UebelAndre
Copy link
Collaborator Author

The number of tasks in one config

I've created bazelbuild/continuous-integration#2120 as a hopeful path forward.

@meteorcloudy
Copy link
Member

presubmit is now working https://buildkite.com/bazel/rules-rust-rustlang/builds/12752

@UebelAndre UebelAndre force-pushed the bzlmod branch 6 times, most recently from dc7be3a to 21ceb8b Compare November 26, 2024 17:40
@UebelAndre
Copy link
Collaborator Author

UebelAndre commented Nov 26, 2024

presubmit is now working https://buildkite.com/bazel/rules-rust-rustlang/builds/12752

With this in place I'll go ahead and update the PR to reflect the granular workspaces change instead of rules_rust_ext. Thanks again!

@UebelAndre UebelAndre force-pushed the bzlmod branch 5 times, most recently from 5f993e7 to d78aaab Compare November 26, 2024 19:01
@UebelAndre UebelAndre added this pull request to the merge queue Nov 26, 2024
Merged via the queue into bazelbuild:main with commit 2bad96d Nov 26, 2024
4 checks passed
@UebelAndre UebelAndre changed the title Moved rust extension rules into a separate rules_rust_ext workspace. Moved rust extension rules into a separate workspaces. Nov 26, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 6, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 7, 2024
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.

Shard rules_rust into multiple bzlmod modules
5 participants