From e1fa93ae036761b3bdc7e80e23f95d243283e96e Mon Sep 17 00:00:00 2001 From: Andy Li <1450947+andy1li@users.noreply.github.com> Date: Mon, 30 Jun 2025 17:57:02 +0800 Subject: [PATCH] Upgrade Rust to 1.88 --- compiled_starters/rust/codecrafters.yml | 4 ++-- dockerfiles/rust-1.88.Dockerfile | 13 +++++++++++++ solutions/rust/01-gg4/code/codecrafters.yml | 4 ++-- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 dockerfiles/rust-1.88.Dockerfile diff --git a/compiled_starters/rust/codecrafters.yml b/compiled_starters/rust/codecrafters.yml index 1fb9cb5..83a3898 100644 --- a/compiled_starters/rust/codecrafters.yml +++ b/compiled_starters/rust/codecrafters.yml @@ -7,5 +7,5 @@ debug: false # Use this to change the Rust version used to run your code # on Codecrafters. # -# Available versions: rust-1.87 -language_pack: rust-1.87 +# Available versions: rust-1.88 +language_pack: rust-1.88 diff --git a/dockerfiles/rust-1.88.Dockerfile b/dockerfiles/rust-1.88.Dockerfile new file mode 100644 index 0000000..0678733 --- /dev/null +++ b/dockerfiles/rust-1.88.Dockerfile @@ -0,0 +1,13 @@ +# syntax=docker/dockerfile:1.7-labs +FROM rust:1.88-bookworm + +# Rebuild the container if these files change +ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Cargo.toml,Cargo.lock" + +WORKDIR /app + +# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses +COPY --exclude=.git --exclude=README.md . /app + +# This runs cargo build +RUN .codecrafters/compile.sh diff --git a/solutions/rust/01-gg4/code/codecrafters.yml b/solutions/rust/01-gg4/code/codecrafters.yml index 1fb9cb5..83a3898 100644 --- a/solutions/rust/01-gg4/code/codecrafters.yml +++ b/solutions/rust/01-gg4/code/codecrafters.yml @@ -7,5 +7,5 @@ debug: false # Use this to change the Rust version used to run your code # on Codecrafters. # -# Available versions: rust-1.87 -language_pack: rust-1.87 +# Available versions: rust-1.88 +language_pack: rust-1.88