Skip to content

Commit

Permalink
Use protosol for protobuf definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
mjain-jump committed Jun 24, 2024
1 parent 76c51b9 commit ed6cd08
Show file tree
Hide file tree
Showing 24 changed files with 7,463 additions and 2,050 deletions.
2 changes: 1 addition & 1 deletion clean.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rm -rf test_suite_env || true
rm src/test_suite/invoke_pb2.py || true
rm src/*.so || true
make -C impl clean
git submodule deinit --all -f
rm -rf protosol || true
deactivate || true
14 changes: 14 additions & 0 deletions fetch_and_generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env sh

# Fetch protosol
if [ ! -d protosol ]; then
git clone --depth=1 -q https://github.com/firedancer-io/protosol.git
else
cd protosol
git pull -q
cd ..
fi

# Generate protobuf files with protoc
protoc --python_out=src/test_suite --proto_path=protosol/proto protosol/proto/*.proto
protol --in-place --python-out=src/test_suite protoc --proto-path=protosol/proto protosol/proto/*.proto
2 changes: 0 additions & 2 deletions generate.sh

This file was deleted.

Loading

0 comments on commit ed6cd08

Please sign in to comment.