feat(proto): hermetic protobuf codegen pipeline (protox + prost) #122

Merged
patman merged 3 commits from patman/proto-codegen into main 2026-08-24 02:25:29 +00:00 AGit
Owner

PR 1 of 3 in the protobuf codegen series (next: proto-grpc-link). Adds proto/ schema root (kgroo.v1 geometry+motion), the kgroo-proto-gen tool (protox -> FileDescriptorSet -> prost-build, no system protoc), Buck2 genrule + mapped_srcs wiring, cargo build.rs twin for rust-analyzer, and the kgroo-proto wire-type crate with roundtrip + proptest coverage. Review focus: genrule/mapped_srcs pattern, fixup hygiene, jerk-primary schema shape.

PR 1 of 3 in the protobuf codegen series (next: proto-grpc-link). Adds proto/ schema root (kgroo.v1 geometry+motion), the kgroo-proto-gen tool (protox -> FileDescriptorSet -> prost-build, no system protoc), Buck2 genrule + mapped_srcs wiring, cargo build.rs twin for rust-analyzer, and the kgroo-proto wire-type crate with roundtrip + proptest coverage. Review focus: genrule/mapped_srcs pattern, fixup hygiene, jerk-primary schema shape.
feat(proto): hermetic protobuf codegen pipeline (protox + prost)
Some checks failed
CI / build-test (pull_request) Failing after 5s
ed26a4bb1f
Adds proto/ as the schema root (kgroo.v1: geometry, motion), a
kgroo-proto-gen tool that compiles .proto sources with the pure-Rust
protox compiler (no system protoc), and the kgroo-proto wire-type crate.
Generation is automatic in both build paths: a Buck2 genrule feeds
mapped_srcs under --cfg=buck_build, and a Cargo build.rs twin keeps
rust-analyzer working. Wire doubles convert to common/types/units
newtypes at the IPC boundary by rule.

Co-authored-by: patman-assist <patrick-ai@kgroo.co>
chore: normalize comments
Some checks failed
CI / build-test (pull_request) Failing after 5s
e31e42a7ac
Co-authored-by: patman-assist <patrick-ai@kgroo.co>
style: rustfmt --edition 2024 drift fix
All checks were successful
CI / build-test (pull_request) Successful in 12m1s
73d31eee39
Reformats files that predate the runner's current rustfmt; no code changes.

Co-authored-by: patman-assist <patrick-ai@kgroo.co>
patman merged commit 98c2f8218a into main 2026-08-24 02:25:29 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
patman/KGROO!122
No description provided.