Skip to content

Add Rust Bzlmod support for #299#652

Open
PSmouz wants to merge 4 commits into
rules-proto-grpc:masterfrom
PSmouz:add-rust-bzlmod-support
Open

Add Rust Bzlmod support for #299#652
PSmouz wants to merge 4 commits into
rules-proto-grpc:masterfrom
PSmouz:add-rust-bzlmod-support

Conversation

@PSmouz

@PSmouz PSmouz commented May 15, 2026

Copy link
Copy Markdown

Summary

Closes #299 for Rust by adding Bzlmod Rust support with the standard language-module rule surface:

  • rust_proto_compile
  • rust_grpc_compile
  • rust_proto_library
  • rust_grpc_library

What Changed

  • Adds modules/rust with:
    • Rust proto/gRPC plugin declarations
    • Rust compile/library rule generation support
    • rules_rust + crate-universe based dependencies
    • generated Rust crate fixup support for multi-plugin output
  • Adds generated Rust docs and README entries.
  • Adds standalone Bzlmod examples for all four Rust rules.
  • Adds Rust routeguide client/server examples and wires Rust into the routeguide matrix.
  • Adds Rust example CI tasks for Linux, macOS, and macOS arm64.
  • Adds out-of-the-box handling for common proto types:
    • google.protobuf.* through prost_types
    • google.type.* / google.rpc.* through proto_types
    • example coverage for Timestamp, Duration, and Money

@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file lang-rust Rust rules specific labels May 15, 2026
@aaliddell

Copy link
Copy Markdown
Member

Thanks! Sorry I haven't had time to review this yet; between work and others I haven't had the time to dedicate this repo recently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation lang-rust Rust rules specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for remaining languages under Bzlmod

2 participants