Skip to content

Auto-sync root Cargo.toml workspace members and proto_compile_assets deps#420

Merged
pcj merged 1 commit intomasterfrom
feat/rust
May 9, 2026
Merged

Auto-sync root Cargo.toml workspace members and proto_compile_assets deps#420
pcj merged 1 commit intomasterfrom
feat/rust

Conversation

@pcj
Copy link
Copy Markdown
Member

@pcj pcj commented May 9, 2026

No description provided.

…deps

After GenerateRules has run for every package, rewrite two marker-delimited
sections at the repo root:

  - Cargo.toml between `# gazelle:proto_rust_members start/end` —
    populated with one entry per package that emitted a proto_rust_library.
  - BUILD.bazel between `# gazelle:vendor_proto_sources_deps start/end` —
    populated with the underlying _lib target of each proto_rust_library
    plus every proto_compiled_sources rule.

Both rewrites are no-ops when the markers (or the target file) are absent,
so existing repos without the markers see no change. Entries are sorted
and deduplicated; the file is only rewritten when content actually changes.
@pcj pcj changed the title Feat/rust Auto-sync root Cargo.toml workspace members and proto_compile_assets deps May 9, 2026
@pcj pcj merged commit 5c7b2ab into master May 9, 2026
1 check passed
@pcj pcj deleted the feat/rust branch May 9, 2026 18:23
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.

1 participant