#!/bin/bash # Generate protobuf files for IDE support set -e echo "Generating protobuf files for IDE..." # Build all proto targets to generate the .rs files bazel build //databuild:generate_databuild_rust # Create a directory for IDE proto files mkdir -p generated_proto # Copy generated files to a stable location cp -f bazel-bin/databuild/databuild.rs databuild/ echo "Generated proto files copied to databuild/"