From 9f0901971dae09100d621b3774f2a72c79ad3d5a Mon Sep 17 00:00:00 2001 From: Matt Straathof Date: Fri, 29 Oct 2021 16:57:28 -0700 Subject: [PATCH] build: fix src directory not being found during rust publish --- rust/.gitignore | 3 ++- rust/generate_protos.sh | 7 ------- rust/src/lib.rs | 2 ++ 3 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 rust/src/lib.rs diff --git a/rust/.gitignore b/rust/.gitignore index a882d76..e16ea81 100644 --- a/rust/.gitignore +++ b/rust/.gitignore @@ -1,3 +1,4 @@ target -src +src/cacheclient.rs +src/controlclient.rs .DS_Store diff --git a/rust/generate_protos.sh b/rust/generate_protos.sh index 8a260ef..e3c8922 100755 --- a/rust/generate_protos.sh +++ b/rust/generate_protos.sh @@ -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 diff --git a/rust/src/lib.rs b/rust/src/lib.rs new file mode 100644 index 0000000..af43c4e --- /dev/null +++ b/rust/src/lib.rs @@ -0,0 +1,2 @@ +mod cacheclient; +mod controlclient;