Rust
Step 1: Import the Rust library
VERSION 0.8
IMPORT github.com/earthly/lib/rust:2.2.11 AS rustStep 2: Initialize the Rust toolchain
install:
FROM rust:1.73.0-bookworm
RUN apt-get update -qq
RUN apt-get install --no-install-recommends -qq autoconf autotools-dev libtool-bin clang cmake bsdmainutils
RUN rustup component add clippy
RUN rustup component add rustfmt
# Call +INIT before copying the source file to avoid installing dependencies every time source code changes.
# This parametrization will be used in future calls to functions of the library
DO rust+INIT --keep_fingerprints=trueStep 3: Build your Rust project
Finally
Last updated