This commit is contained in:
parent
7e889856e9
commit
77d74c09fb
5 changed files with 30 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -10,3 +10,5 @@ examples/podcast_reviews/data
|
||||||
node_modules
|
node_modules
|
||||||
**/node_modules
|
**/node_modules
|
||||||
Cargo.toml
|
Cargo.toml
|
||||||
|
Cargo.lock
|
||||||
|
databuild/databuild.rs
|
||||||
|
|
|
||||||
11
README.md
11
README.md
|
|
@ -11,6 +11,17 @@ See the [podcast example BUILD file](examples/podcast_reviews/BUILD.bazel).
|
||||||
|
|
||||||
## Development
|
## 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
|
### Testing
|
||||||
|
|
||||||
DataBuild core testing:
|
DataBuild core testing:
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
34
|
|
||||||
17
scripts/generate_proto_for_ide.sh
Executable file
17
scripts/generate_proto_for_ide.sh
Executable 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/"
|
||||||
Loading…
Reference in a new issue