Bring chain versions up to proper version and bring dependencies up to current version.
This commit is contained in:
parent
86b878cd60
commit
d2c6fe7aec
4 changed files with 143 additions and 419 deletions
547
rust-engine/Cargo.lock
generated
547
rust-engine/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -7,10 +7,10 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
tokio = { version = "1.38.0", features = ["full"] }
|
||||
warp = "0.3.7"
|
||||
warp = "0.4.2"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
sqlx = { version = "0.7.4", features = ["runtime-tokio-rustls", "mysql", "chrono"] }
|
||||
sqlx = { version = "0.8.6", features = ["runtime-tokio-rustls", "mysql", "chrono"] }
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.3"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
# --- Stage 1: Builder ---
|
||||
# Use a stable Rust version
|
||||
FROM rust:1.85-slim AS builder
|
||||
FROM rust:1.88-slim AS builder
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install build dependencies needed for sqlx
|
||||
|
|
@ -54,11 +54,10 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked \
|
|||
cargo build --release || true
|
||||
|
||||
|
||||
# Now copy the real source and build the final binary
|
||||
# Remove dummy main.rs before copying the real source
|
||||
RUN rm -f src/main.rs
|
||||
COPY src ./src
|
||||
# Remove dummy main.rs if present, then build the real binary in one step to avoid cache issues
|
||||
RUN if grep -q 'cargo cache build' src/main.rs 2>/dev/null; then rm src/main.rs; fi \
|
||||
&& cargo build --release --locked
|
||||
RUN cargo build --release --locked
|
||||
|
||||
# --- Stage 2: Final, small image ---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[toolchain]
|
||||
channel = "1.85.0"
|
||||
channel = "1.88.0"
|
||||
# components = ["rustfmt", "clippy"]
|
||||
# targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue