Skip to content

Commit e031cf3

Browse files
committed
chore: update dependencies and bump to v0.2.0
- Update to axum 0.8.8, tower 0.5.2, tower-http 0.6.8 - Update tracing to 0.1.44, tracing-subscriber to 0.3.22 - Update serde_json to 1.0.146 - Fix breaking changes from axum 0.8: - Use .into() for Message::Text and Message::Ping types - Update wildcard route syntax from *path to {*path}
1 parent 0f883d9 commit e031cf3

4 files changed

Lines changed: 55 additions & 99 deletions

File tree

Cargo.lock

Lines changed: 41 additions & 84 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
[workspace]
2-
members = [
3-
"tracing-web-console",
4-
"example-server",
5-
]
2+
members = ["tracing-web-console", "example-server"]
63
resolver = "2"
74

85
[workspace.package]
9-
version = "0.1.0"
6+
version = "0.2.0"
107
edition = "2021"
11-
authors = ["Your Name <your.email@example.com>"]
8+
authors = [
9+
"Paul Colin Hennig <8d_fvfmaa-o2wf_79aqig6g2ki6-09ffkeqmyo3d@vindelicum.eu>",
10+
]
1211
license = "AGPL-3.0"
1312
repository = "https://github.com/firstdorsal/tracing-web-console"
1413

@@ -18,17 +17,17 @@ tokio = { version = "1", features = ["full"] }
1817
tokio-stream = "0.1"
1918

2019
# Web framework
21-
axum = { version = "0.7", features = ["ws"] }
22-
tower = "0.4"
23-
tower-http = { version = "0.5", features = ["fs", "cors"] }
20+
axum = { version = "0.8.8", features = ["ws"] }
21+
tower = "0.5.2"
22+
tower-http = { version = "0.6.8", features = ["fs", "cors"] }
2423

2524
# Tracing
26-
tracing = "0.1"
27-
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
25+
tracing = "0.1.44"
26+
tracing-subscriber = { version = "0.3.22", features = ["env-filter", "json"] }
2827

2928
# Serialization
3029
serde = { version = "1", features = ["derive"] }
31-
serde_json = "1"
30+
serde_json = "1.0.146"
3231

3332
# Time
3433
chrono = { version = "0.4", features = ["serde"] }

tracing-web-console/src/api/logs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async fn handle_ws_connection(mut socket: WebSocket, state: Arc<LogsState>) {
127127
};
128128

129129
// Send the JSON message to the client
130-
if socket.send(Message::Text(json)).await.is_err() {
130+
if socket.send(Message::Text(json.into())).await.is_err() {
131131
// Client disconnected
132132
tracing::debug!("WebSocket client disconnected");
133133
break;
@@ -180,7 +180,7 @@ async fn handle_ws_connection(mut socket: WebSocket, state: Arc<LogsState>) {
180180

181181
// Send periodic ping to keep connection alive
182182
_ = ping_interval.tick() => {
183-
if socket.send(Message::Ping(vec![])).await.is_err() {
183+
if socket.send(Message::Ping(vec![].into())).await.is_err() {
184184
tracing::debug!("Failed to send ping, client disconnected");
185185
break;
186186
}

0 commit comments

Comments
 (0)