diff --git a/compiled_starters/rust/codecrafters.yml b/compiled_starters/rust/codecrafters.yml index 2afe77f..92afff5 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.76 -language_pack: rust-1.76 +# Available versions: rust-1.77 +language_pack: rust-1.77 diff --git a/dockerfiles/rust-1.77.Dockerfile b/dockerfiles/rust-1.77.Dockerfile new file mode 100644 index 0000000..fc5e596 --- /dev/null +++ b/dockerfiles/rust-1.77.Dockerfile @@ -0,0 +1,20 @@ +FROM rust:1.77-buster + +COPY Cargo.toml /app/Cargo.toml +COPY Cargo.lock /app/Cargo.lock + +RUN mkdir /app/src +RUN echo 'fn main() { println!("Hello World!"); }' > /app/src/main.rs + +WORKDIR /app +RUN cargo build --release --target-dir=/tmp/codecrafters-grep-target + +RUN cargo clean -p grep-starter-rust --release --target-dir=/tmp/codecrafters-grep-target + +RUN rm -rf /app/src + +RUN echo "cd \${CODECRAFTERS_SUBMISSION_DIR} && cargo build --release --target-dir=/tmp/codecrafters-grep-target --manifest-path Cargo.toml" > /codecrafters-precompile.sh +RUN chmod +x /codecrafters-precompile.sh + +ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Cargo.toml,Cargo.lock" + diff --git a/solutions/rust/01-init/code/codecrafters.yml b/solutions/rust/01-init/code/codecrafters.yml index 2afe77f..92afff5 100644 --- a/solutions/rust/01-init/code/codecrafters.yml +++ b/solutions/rust/01-init/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.76 -language_pack: rust-1.76 +# Available versions: rust-1.77 +language_pack: rust-1.77 diff --git a/starter_templates/codecrafters.yml b/starter_templates/codecrafters.yml index 4517604..7059395 100644 --- a/starter_templates/codecrafters.yml +++ b/starter_templates/codecrafters.yml @@ -36,8 +36,8 @@ language_pack: c-9.2 language_pack: ruby-3.2 {{/ language_is_ruby }} {{# language_is_rust }} -# Available versions: rust-1.76 -language_pack: rust-1.76 +# Available versions: rust-1.77 +language_pack: rust-1.77 {{/ language_is_rust }} {{# language_is_haskell }} # Available versions: haskell-9.2