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
7
7
# Use this to change the Rust version used to run your code
8
8
# on Codecrafters.
9
9
#
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/
3
3
zig-out /
4
4
5
5
# Compiled binary output
6
+ main
6
7
bin /
7
8
! bin /.gitkeep
8
9
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
7
7
# Use this to change the Rust version used to run your code
8
8
# on Codecrafters.
9
9
#
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/
3
3
zig-out /
4
4
5
5
# Compiled binary output
6
+ main
6
7
bin /
7
8
! bin /.gitkeep
8
9
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ language_pack: c-9.2
36
36
language_pack : ruby-3.2
37
37
{{/ language_is_ruby }}
38
38
{{# 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
41
41
{{/ language_is_rust }}
42
42
{{# language_is_haskell }}
43
43
# Available versions: haskell-9.0
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ zig-cache/
3
3
zig-out /
4
4
5
5
# Compiled binary output
6
+ main
6
7
bin /
7
8
! bin /.gitkeep
8
9
You can’t perform that action at this time.
0 commit comments