Moved Miden's generated Rust gRPC bindings from checked-in source files into Cargo's build lifecycle. Generated bindings had required a separate regeneration step and a CI job to detect stale output. The change made generation part of the normal build and removed nearly 10,000 lines of tracked generated code, keeping schema changes and handwritten integration code visible in review.
The implementation generates bindings under Cargo's OUT_DIR and includes them through source-side module declarations, preserving existing import paths. I updated remote-prover generation, removed the opt-in generation gate and stale-output CI job, and added protobuf compiler installation to CI and publishing workflows. Moving generation into each build also made compiler-version consistency a reproducibility concern. In related work, I preserved the schema compiler's annotated diagnostics so invalid definitions report source locations and useful error context.
The build-generation change and schema-diagnostic fix were merged upstream.