From b8f64037a9bb12774a3d5d83afd995ff5ae708cb Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 10 Feb 2025 15:37:53 +0100 Subject: [PATCH] tokio-xmpp: Fix build on insecure-tcp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit insecure-tcp requires the io-util feature of tokio, so let’s enable it there. Fixes this error: 5 | use tokio::{io::BufStream, net::TcpStream}; | ^^^^^^^^^^^^^ no `BufStream` in `io` --- tokio-xmpp/Cargo.toml | 2 +- tokio-xmpp/ChangeLog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tokio-xmpp/Cargo.toml b/tokio-xmpp/Cargo.toml index 262a2b30d7d92356727d65ee2d049fd8db0809cc..e7971ddddeb20d2ace08ecc26b34479b5fe2f977 100644 --- a/tokio-xmpp/Cargo.toml +++ b/tokio-xmpp/Cargo.toml @@ -52,7 +52,7 @@ tls-rust-webpki-roots = ["tls-rust", "webpki-roots"] tls-native = ["tokio-native-tls", "native-tls"] starttls-native = ["starttls", "tls-native"] starttls-rust = ["starttls", "tls-rust"] -insecure-tcp = [] +insecure-tcp = ["tokio/io-util"] syntax-highlighting = ["syntect"] # Enable serde support in jid crate serde = [ "xmpp-parsers/serde" ] diff --git a/tokio-xmpp/ChangeLog b/tokio-xmpp/ChangeLog index cbf166fe83ca50e1bea8688d9a392dfead5ed101..5087285b3c5b42df60d1951d4e078933d8a214fa 100644 --- a/tokio-xmpp/ChangeLog +++ b/tokio-xmpp/ChangeLog @@ -33,6 +33,7 @@ XXXX-YY-ZZ RELEASER actual encryption and decryption to the kernel, which in turn can delegate it to a hardware implementations if available. This depends on the `tls-rust-ktls` feature. (!458, !490) + - Building with insecure-tcp and no other feature got fixed. Version 4.0.0: 2024-07-26 Maxime “pep” Buquet