File tree Expand file tree Collapse file tree 7 files changed +36
-6
lines changed Expand file tree Collapse file tree 7 files changed +36
-6
lines changed Original file line number Diff line number Diff 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.76
11- language_pack : rust-1.76
10+ # Available versions: rust-1.77
11+ language_pack : rust-1.77
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ zig-cache/
33zig-out /
44
55# Compiled binary output
6+ main
67bin /
78! bin /.gitkeep
89
Original file line number Diff line number Diff line change 1+ FROM rust:1.77-buster
2+
3+ COPY Cargo.toml /app/Cargo.toml
4+ COPY Cargo.lock /app/Cargo.lock
5+
6+ RUN mkdir /app/src
7+ RUN echo 'fn main() { println!("Hello World!"); }' > /app/src/main.rs
8+
9+ WORKDIR /app
10+ RUN cargo build --release --target-dir=/tmp/codecrafters-sqlite-target
11+
12+ RUN rm /tmp/codecrafters-sqlite-target/release/sqlite-starter-rust
13+ RUN rm /tmp/codecrafters-sqlite-target/release/sqlite-starter-rust.d
14+
15+ RUN find /tmp/codecrafters-sqlite-target/release -type f -maxdepth 1 -delete
16+ RUN rm -f /tmp/codecrafters-sqlite-target/release/deps/*sqlite_starter_rust*
17+ RUN rm -f /tmp/codecrafters-sqlite-target/release/deps/sqlite_starter_rust*
18+ RUN rm -f /tmp/codecrafters-sqlite-target/release/.fingerprint/*sqlite_starter_rust*
19+ RUN rm -f /tmp/codecrafters-sqlite-target/release/.fingerprint/sqlite_starter_rust*
20+
21+ RUN rm -rf /app/src
22+
23+ RUN echo "cd \$ {CODECRAFTERS_SUBMISSION_DIR} && cargo build --release --target-dir=/tmp/codecrafters-sqlite-target --manifest-path Cargo.toml" > /codecrafters-precompile.sh
24+ RUN chmod +x /codecrafters-precompile.sh
25+
26+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Cargo.toml,Cargo.lock"
27+
Original file line number Diff line number Diff 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.76
11- language_pack : rust-1.76
10+ # Available versions: rust-1.77
11+ language_pack : rust-1.77
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ zig-cache/
33zig-out /
44
55# Compiled binary output
6+ main
67bin /
78! bin /.gitkeep
89
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ language_pack: c-9.2
3636language_pack : ruby-3.2
3737{{/ language_is_ruby }}
3838{{# language_is_rust }}
39- # Available versions: rust-1.76
40- language_pack : rust-1.76
39+ # Available versions: rust-1.77
40+ language_pack : rust-1.77
4141{{/ language_is_rust }}
4242{{# language_is_haskell }}
4343# Available versions: haskell-9.0
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ zig-cache/
33zig-out /
44
55# Compiled binary output
6+ main
67bin /
78! bin /.gitkeep
89
You can’t perform that action at this time.
0 commit comments