Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust: Fixing Dockerfile and Cargo.toml for test cases #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/target_rust/docker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ authors = ["Ulysse Carion <[email protected]>"]
edition = "2018"

[dependencies]
chrono = { version = "0.4", features = ["serde"] }
serde_json = "1"
serde = { version = "1.0", features = ["derive"] }
chrono = { version = "0.4.22", features = ["serde"] }
serde_json = "1.0.83"
serde = { version = "1.0.143", features = ["derive"] }
5 changes: 3 additions & 2 deletions crates/target_rust/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM rust:1.49
# syntax=docker/dockerfile:1
FROM rust:1.63

ARG MAIN

Expand All @@ -13,5 +14,5 @@ COPY /main.rs /work/src/main.rs
COPY /gen /work/src/jtd_codegen_e2e/
RUN sed -i -e "s/MAIN/$MAIN/g" /work/src/main.rs

RUN cargo build
RUN --mount=type=cache,target="${HOME}/.cargo" cargo build
ENTRYPOINT target/debug/jtd_e2e_test