Update deps (#859)
This commit is contained in:
parent
bb8a0e596c
commit
fc577241bd
1037
Cargo.lock
generated
1037
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
48
Cargo.toml
48
Cargo.toml
@ -11,19 +11,19 @@ name = "labrinth"
|
|||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix = "0.13.0"
|
actix = "0.13.1"
|
||||||
actix-web = "4.3.1"
|
actix-web = "4.4.1"
|
||||||
actix-rt = "2.8.0"
|
actix-rt = "2.9.0"
|
||||||
actix-multipart = "0.6.0"
|
actix-multipart = "0.6.1"
|
||||||
actix-cors = "0.6.4"
|
actix-cors = "0.7.0"
|
||||||
actix-ws = "0.2.5"
|
actix-ws = "0.2.5"
|
||||||
actix-files = "0.6.2"
|
actix-files = "0.6.5"
|
||||||
actix-web-prom = "0.7.0"
|
actix-web-prom = "0.7.0"
|
||||||
|
|
||||||
tokio = { version = "1.29.1", features = ["sync"] }
|
tokio = { version = "1.35.1", features = ["sync"] }
|
||||||
tokio-stream = "0.1.14"
|
tokio-stream = "0.1.14"
|
||||||
|
|
||||||
futures = "0.3.28"
|
futures = "0.3.30"
|
||||||
futures-timer = "3.0.2"
|
futures-timer = "3.0.2"
|
||||||
async-trait = "0.1.70"
|
async-trait = "0.1.70"
|
||||||
dashmap = "5.4.0"
|
dashmap = "5.4.0"
|
||||||
@ -46,7 +46,7 @@ xml-rs = "0.8.15"
|
|||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
rand_chacha = "0.3.1"
|
rand_chacha = "0.3.1"
|
||||||
bytes = "1.4.0"
|
bytes = "1.4.0"
|
||||||
base64 = "0.21.2"
|
base64 = "0.21.7"
|
||||||
sha1 = { version = "0.6.1", features = ["std"] }
|
sha1 = { version = "0.6.1", features = ["std"] }
|
||||||
sha2 = "0.9.9"
|
sha2 = "0.9.9"
|
||||||
hmac = "0.11.0"
|
hmac = "0.11.0"
|
||||||
@ -61,19 +61,19 @@ urlencoding = "2.1.2"
|
|||||||
|
|
||||||
zip = "0.6.6"
|
zip = "0.6.6"
|
||||||
|
|
||||||
itertools = "0.11.0"
|
itertools = "0.12.0"
|
||||||
|
|
||||||
validator = { version = "0.16.1", features = ["derive", "phone"] }
|
validator = { version = "0.16.1", features = ["derive", "phone"] }
|
||||||
regex = "1.8.4"
|
regex = "1.10.2"
|
||||||
censor = "0.3.0"
|
censor = "0.3.0"
|
||||||
spdx = { version = "0.10.1", features = ["text"] }
|
spdx = { version = "0.10.3", features = ["text"] }
|
||||||
|
|
||||||
dotenvy = "0.15.7"
|
dotenvy = "0.15.7"
|
||||||
log = "0.4.19"
|
log = "0.4.20"
|
||||||
env_logger = "0.10.0"
|
env_logger = "0.10.1"
|
||||||
thiserror = "1.0.41"
|
thiserror = "1.0.56"
|
||||||
|
|
||||||
sqlx = { version = "0.7.2", features = [
|
sqlx = { version = "0.7.3", features = [
|
||||||
"runtime-tokio-rustls",
|
"runtime-tokio-rustls",
|
||||||
"postgres",
|
"postgres",
|
||||||
"chrono",
|
"chrono",
|
||||||
@ -82,30 +82,30 @@ sqlx = { version = "0.7.2", features = [
|
|||||||
"rust_decimal",
|
"rust_decimal",
|
||||||
"json",
|
"json",
|
||||||
] }
|
] }
|
||||||
rust_decimal = { version = "1.30.0", features = [
|
rust_decimal = { version = "1.33.1", features = [
|
||||||
"serde-with-float",
|
"serde-with-float",
|
||||||
"serde-with-str",
|
"serde-with-str",
|
||||||
] }
|
] }
|
||||||
redis = { version = "0.23.3", features = ["tokio-comp", "ahash", "r2d2"]}
|
redis = { version = "0.24.0", features = ["tokio-comp", "ahash", "r2d2"]}
|
||||||
deadpool-redis = "0.13.0"
|
deadpool-redis = "0.14.0"
|
||||||
clickhouse = { version = "0.11.2", features = ["uuid", "time"] }
|
clickhouse = { version = "0.11.2", features = ["uuid", "time"] }
|
||||||
uuid = { version = "1.2.2", features = ["v4", "fast-rng", "serde"] }
|
uuid = { version = "1.2.2", features = ["v4", "fast-rng", "serde"] }
|
||||||
|
|
||||||
maxminddb = "0.23.0"
|
maxminddb = "0.24.0"
|
||||||
flate2 = "1.0.25"
|
flate2 = "1.0.25"
|
||||||
tar = "0.4.38"
|
tar = "0.4.38"
|
||||||
|
|
||||||
sentry = { version = "0.31.5" }
|
sentry = { version = "0.32.1" }
|
||||||
sentry-actix = "0.31.5"
|
sentry-actix = "0.32.1"
|
||||||
|
|
||||||
image = "0.24.6"
|
image = "0.24.6"
|
||||||
color-thief = "0.2.2"
|
color-thief = "0.2.2"
|
||||||
|
|
||||||
woothee = "0.13.0"
|
woothee = "0.13.0"
|
||||||
|
|
||||||
lettre = "0.10.4"
|
lettre = "0.11.3"
|
||||||
|
|
||||||
derive-new = "0.5.9"
|
derive-new = "0.6.0"
|
||||||
rust_iso3166 = "0.1.11"
|
rust_iso3166 = "0.1.11"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|||||||
18
Dockerfile
18
Dockerfile
@ -2,12 +2,25 @@ FROM rust:1.75.0 as build
|
|||||||
ENV PKG_CONFIG_ALLOW_CROSS=1
|
ENV PKG_CONFIG_ALLOW_CROSS=1
|
||||||
|
|
||||||
WORKDIR /usr/src/labrinth
|
WORKDIR /usr/src/labrinth
|
||||||
|
# Download and compile deps
|
||||||
|
COPY Cargo.toml .
|
||||||
|
COPY Cargo.lock .
|
||||||
|
COPY docker_utils/dummy.rs .
|
||||||
|
# Change temporarely the path of the code
|
||||||
|
RUN sed -i 's|src/main.rs|dummy.rs|' Cargo.toml
|
||||||
|
# Build only deps
|
||||||
|
RUN cargo build --release
|
||||||
|
# Now return the file back to normal
|
||||||
|
RUN sed -i 's|dummy.rs|src/main.rs|' Cargo.toml
|
||||||
|
|
||||||
|
# Copy everything
|
||||||
COPY . .
|
COPY . .
|
||||||
|
# Build our code
|
||||||
ARG SQLX_OFFLINE=true
|
ARG SQLX_OFFLINE=true
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
|
# Final Stage
|
||||||
FROM debian:bookworm-slim
|
FROM ubuntu:latest
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends ca-certificates \
|
&& apt-get install -y --no-install-recommends ca-certificates \
|
||||||
@ -19,7 +32,6 @@ RUN update-ca-certificates
|
|||||||
COPY --from=build /usr/src/labrinth/target/release/labrinth /labrinth/labrinth
|
COPY --from=build /usr/src/labrinth/target/release/labrinth /labrinth/labrinth
|
||||||
COPY --from=build /usr/src/labrinth/migrations/* /labrinth/migrations/
|
COPY --from=build /usr/src/labrinth/migrations/* /labrinth/migrations/
|
||||||
COPY --from=build /usr/src/labrinth/assets /labrinth/assets
|
COPY --from=build /usr/src/labrinth/assets /labrinth/assets
|
||||||
|
|
||||||
WORKDIR /labrinth
|
WORKDIR /labrinth
|
||||||
|
|
||||||
CMD /labrinth/labrinth
|
CMD /labrinth/labrinth
|
||||||
1
docker_utils/dummy.rs
Normal file
1
docker_utils/dummy.rs
Normal file
@ -0,0 +1 @@
|
|||||||
|
fn main() {}
|
||||||
Loading…
x
Reference in New Issue
Block a user