cargo-machete 0.9.1

Find unused dependencies with this one weird trick!
1
2
3
4
5
6
7
8
9
10
11
12
FROM rust:slim AS build

COPY . /src
RUN cargo install --path /src --locked
RUN apt update && apt -y install tini

FROM gcr.io/distroless/cc-debian12
COPY --from=build /usr/local/cargo/bin/cargo-machete /usr/local/bin/
COPY --from=build /usr/bin/tini-static /tini

WORKDIR /src
ENTRYPOINT ["/tini", "--", "/usr/local/bin/cargo-machete"]