Skip to content

Commit

Permalink
build: fix src directory not being found during rust publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bruuuuuuuce committed Oct 29, 2021
1 parent abd7d23 commit 9f09019
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion rust/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
target
src
src/cacheclient.rs
src/controlclient.rs
.DS_Store
7 changes: 0 additions & 7 deletions rust/generate_protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,4 @@ if [ "$CURRENT_DIR" != "rust" ]; then
exit 1
fi

mkdir src
pushd src
echo "mod cacheclient;" >> lib.rs
echo "mod controlclient;" >> lib.rs
echo "" >> lib.rs
popd

protoc -I=../proto --rust_out=./src cacheclient.proto controlclient.proto
2 changes: 2 additions & 0 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod cacheclient;
mod controlclient;

0 comments on commit 9f09019

Please sign in to comment.