features on tests
This commit is contained in:
parent
7a087415a2
commit
78fceb1fbf
@ -35,20 +35,20 @@ COPY . .
|
|||||||
# test the application with cargo-nextest
|
# test the application with cargo-nextest
|
||||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||||
--mount=type=cache,target=/app/target \
|
--mount=type=cache,target=/app/target \
|
||||||
cargo nextest run
|
cargo nextest run --features "rdkafka-src tokio-uring" --no-default-features
|
||||||
|
|
||||||
# build the application
|
# build the application
|
||||||
# using a "release" profile (which install does) is **very** important
|
# using a "release" profile (which install does) is **very** important
|
||||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||||
--mount=type=cache,target=/app/target \
|
--mount=type=cache,target=/app/target \
|
||||||
cargo install \
|
cargo install \
|
||||||
--features tokio-uring \
|
--features "rdkafka-src tokio-uring" \
|
||||||
--locked \
|
--locked \
|
||||||
--features rdkafka-src \
|
|
||||||
--no-default-features \
|
--no-default-features \
|
||||||
--path ./web3_proxy \
|
--path ./web3_proxy \
|
||||||
--profile faster_release \
|
--profile faster_release \
|
||||||
--root /usr/local/bin
|
--root /usr/local/bin \
|
||||||
|
;
|
||||||
|
|
||||||
#
|
#
|
||||||
# We do not need the Rust toolchain to run the binary!
|
# We do not need the Rust toolchain to run the binary!
|
||||||
|
Loading…
Reference in New Issue
Block a user