Skip to content

Commit 0266926

Browse files
authored
Merge pull request #95 from codecrafters-io/andy/upgrade
[Shell] CC-1758: Upgrade Rust to v1.87
2 parents 8d871f5 + cba1ec2 commit 0266926

File tree

8 files changed

+23
-10
lines changed

8 files changed

+23
-10
lines changed

compiled_starters/rust/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Time to move on to the next stage!
2727

2828
Note: This section is for stages 2 and beyond.
2929

30-
1. Ensure you have `cargo (1.86)` installed locally
30+
1. Ensure you have `cargo (1.87)` installed locally
3131
1. Run `./your_program.sh` to run your program, which is implemented in
3232
`src/main.rs`. This command compiles your Rust project, so it might be slow
3333
the first time you run it. Subsequent runs will be fast.

compiled_starters/rust/codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Rust version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: rust-1.86
11-
language_pack: rust-1.86
10+
# Available versions: rust-1.87
11+
language_pack: rust-1.87

dockerfiles/rust-1.87.Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# syntax=docker/dockerfile:1.7-labs
2+
FROM rust:1.87-bookworm
3+
4+
# Rebuild the container if these files change
5+
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Cargo.toml,Cargo.lock"
6+
7+
WORKDIR /app
8+
9+
# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
10+
COPY --exclude=.git --exclude=README.md . /app
11+
12+
# This runs cargo build
13+
RUN .codecrafters/compile.sh

solutions/rust/01-oo8/code/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Time to move on to the next stage!
2727

2828
Note: This section is for stages 2 and beyond.
2929

30-
1. Ensure you have `cargo (1.86)` installed locally
30+
1. Ensure you have `cargo (1.87)` installed locally
3131
1. Run `./your_program.sh` to run your program, which is implemented in
3232
`src/main.rs`. This command compiles your Rust project, so it might be slow
3333
the first time you run it. Subsequent runs will be fast.

solutions/rust/01-oo8/code/codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Rust version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: rust-1.86
11-
language_pack: rust-1.86
10+
# Available versions: rust-1.87
11+
language_pack: rust-1.87

solutions/rust/02-cz2/code/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Time to move on to the next stage!
2727

2828
Note: This section is for stages 2 and beyond.
2929

30-
1. Ensure you have `cargo (1.86)` installed locally
30+
1. Ensure you have `cargo (1.87)` installed locally
3131
1. Run `./your_program.sh` to run your program, which is implemented in
3232
`src/main.rs`. This command compiles your Rust project, so it might be slow
3333
the first time you run it. Subsequent runs will be fast.

solutions/rust/02-cz2/code/codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Rust version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: rust-1.86
11-
language_pack: rust-1.86
10+
# Available versions: rust-1.87
11+
language_pack: rust-1.87

starter_templates/rust/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
attributes:
2-
required_executable: cargo (1.86)
2+
required_executable: cargo (1.87)
33
user_editable_file: src/main.rs

0 commit comments

Comments
 (0)