Properly cache scabbard dependencies
The Cargo.toml for scabbard was erroneously omitted.
@@ -72,6 +72,10 @@ RUN USER=root cargo new --bin examples/private_xo
RUN USER=root cargo new --bin services/health
RUN USER=root cargo new --bin services/scabbard/
+# This is required for scabbard because it has a library and a binary
+RUN mkdir /build/services/scabbard/src/cli \
+ && cp /build/services/scabbard/src/main.rs services/scabbard/src/cli/main.rs
+
# Copy over splinter files
COPY Cargo.toml /build/Cargo.toml
COPY cli/Cargo.toml /build/cli/Cargo.toml
@@ -81,7 +85,7 @@ COPY libsplinter/Cargo.toml /build/libsplinter/Cargo.toml
COPY libsplinter/protos /build/libsplinter/protos
COPY splinterd/Cargo.toml /build/splinterd/Cargo.toml
COPY services/health/Cargo.toml /build/services/health/Cargo.toml
-COPY services/scabbard/src /build/services/scabbard/src
+COPY services/scabbard/Cargo.toml /build/services/scabbard/Cargo.toml
# Copy over example Cargo.toml files
COPY examples/gameroom/cli/Cargo.toml \
@@ -119,6 +123,7 @@ RUN rm \
target/release/deps/pcounter* \
target/release/deps/private_counter* \
target/release/deps/private_xo* \
+ target/release/deps/scabbard* \
target/release/deps/splinter_cli* \
target/release/deps/splinterd*
