Generate stuff to make intellij happy
Some checks are pending
/ setup (push) Waiting to run

This commit is contained in:
Stuart Axelbrooke 2025-07-19 16:02:57 -07:00
parent 7e889856e9
commit 77d74c09fb
5 changed files with 30 additions and 1 deletions

2
.gitignore vendored
View file

@ -10,3 +10,5 @@ examples/podcast_reviews/data
node_modules
**/node_modules
Cargo.toml
Cargo.lock
databuild/databuild.rs

View file

@ -11,6 +11,17 @@ See the [podcast example BUILD file](examples/podcast_reviews/BUILD.bazel).
## Development
### Intellij
Run these to allow intellij to understand the rust source:
```bash
# Generate a Cargo.toml file so intellij can link rust src
python3 scripts/generate_cargo_toml.py
# Generate a gitignore'd rust file representing the protobuf interfaces
scripts/generate_proto_for_ide.sh
```
### Testing
DataBuild core testing:

View file

@ -1 +0,0 @@
34

View file

@ -0,0 +1,17 @@
#!/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/"