Skip to content

Commit

Permalink
chore: Update rust and cargo deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Fosli committed Sep 24, 2023
1 parent e19c6b6 commit 5d7582d
Show file tree
Hide file tree
Showing 10 changed files with 275 additions and 308 deletions.
545 changes: 255 additions & 290 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"

members = [
"front-end",
Expand Down
8 changes: 4 additions & 4 deletions front-end/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ wasm-bindgen-futures = "0.4"
js-sys = "0.3"
log = "0.4"
wasm-logger = "0.2"
gloo-dialogs = "0.1"
gloo-events = "0.1"
gloo-timers = "0.2"
gloo-utils = "0.1"
gloo-dialogs = "0.2"
gloo-events = "0.2"
gloo-timers = "0.3"
gloo-utils = "0.2"
futures = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion front-end/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.71 AS builder
FROM rust:1.72 AS builder
# Pass a unique VERSION as build arg to bust browser cache
ARG VERSION=latest
ARG BUILD_PROFILE=release
Expand Down
8 changes: 4 additions & 4 deletions highscore-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ highscore-types = { path = "../highscore-types" }
axum = { version = "0.6" }
mongodb = { version = "2", features = ["tracing-unstable"] }
bson = { version = "2", features = ["time-0_3"] }
opentelemetry = "0.19"
opentelemetry = "0.20"
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", features = ["full"] }
time = { version = "0.3", features = ["parsing", "serde-well-known"] }
tracing = "0.1"
tracing-opentelemetry = "0.19"
tracing-opentelemetry = "0.21"
tracing-subscriber = "0.3"
axum-tracing-opentelemetry = "0.11"
init-tracing-opentelemetry = { version = "0.12.0-alpha.0", features = ["tracing_subscriber_ext", "otlp"] }
axum-tracing-opentelemetry = "0.14"
init-tracing-opentelemetry = { version = "0.14", features = ["tracing_subscriber_ext", "otlp"] }
futures = "0.3"
2 changes: 1 addition & 1 deletion highscore-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.71 AS builder
FROM rust:1.72 AS builder
ARG CARGO_INSTALL_OPTIONS=''
WORKDIR /app
# Build the service
Expand Down
5 changes: 3 additions & 2 deletions highscore-api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use axum::{
routing::{get, post},
Router, Server,
};
use axum_tracing_opentelemetry::opentelemetry_tracing_layer;
use axum_tracing_opentelemetry::middleware::{OtelAxumLayer, OtelInResponseLayer};
use init_tracing_opentelemetry::tracing_subscriber_ext;
use mongodb::{options::ClientOptions, Client, Database};
use tokio::signal;
Expand All @@ -24,7 +24,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
.route("/submit", post(submit::submit))
.route("/readyz", get(health::ready))
.route("/livez", get(health::live))
.layer(opentelemetry_tracing_layer())
.layer(OtelInResponseLayer::default())
.layer(OtelAxumLayer::default())
.with_state(db);

let addr = env::var("LISTEN_ADDR")
Expand Down
6 changes: 3 additions & 3 deletions highscore-cleanup-job/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ highscore-types = { path = "../highscore-types" }

mongodb = { version = "2", features = ["tracing-unstable"] }
bson = { version = "2", features = ["time-0_3"] }
opentelemetry = "0.19"
opentelemetry = "0.20"
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", features = ["full"] }
time = { version = "0.3", features = ["parsing", "serde-well-known"] }
tracing = "0.1"
tracing-opentelemetry = "0.19"
tracing-opentelemetry = "0.21"
tracing-subscriber = "0.3"
init-tracing-opentelemetry = { version = "0.12.0-alpha.0", features = ["tracing_subscriber_ext", "otlp"] }
init-tracing-opentelemetry = { version = "0.14", features = ["tracing_subscriber_ext", "otlp"] }
futures = "0.3"
2 changes: 1 addition & 1 deletion highscore-cleanup-job/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.71 AS builder
FROM rust:1.72 AS builder
ARG CARGO_INSTALL_OPTIONS=''
WORKDIR /app
# Build the service
Expand Down
4 changes: 2 additions & 2 deletions highscore-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bson = "2.6.1"
serde = "1.0.166"
bson = "2"
serde = "1"

0 comments on commit 5d7582d

Please sign in to comment.