From abe0e11df6f8b668f4cd8befc6e707835c4ed3a3 Mon Sep 17 00:00:00 2001 From: Alex Butler Date: Sun, 15 Dec 2024 10:01:55 +0000 Subject: [PATCH] Update thiserror to 2 Update dev-dependencies Update changelog --- CHANGELOG.md | 4 ++++ Cargo.toml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cf15916..65456c87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,12 @@ +# Unreleased +- Update `thiserror` to `2`. + # 0.25.0 - New `Payload` type for `Message` that allows sending messages with a payload that can be cheaply cloned (`Bytes`). Long standing [issue](https://github.com/snapview/tungstenite-rs/issues/96) solved! - Trim spaces on `Sec-WebSocket-Protocol` header. +- Eliminate data copies when reading complete messages & optimise read buffer. Improves performance. # 0.24.0 diff --git a/Cargo.toml b/Cargo.toml index 8a4a340a..72872214 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ httparse = { version = "1.3.4", optional = true } log = "0.4.8" rand = "0.8.0" sha1 = { version = "0.10", optional = true } -thiserror = "1.0.23" +thiserror = "2.0.7" url = { version = "2.1.0", optional = true } utf-8 = "0.7.5" @@ -65,7 +65,7 @@ version = "0.26" [dev-dependencies] criterion = "0.5.0" -env_logger = "0.10.0" +env_logger = "0.11" input_buffer = "0.5.0" rand = "0.8.4" socket2 = "0.5.5"