From 628c2113d0b7e3f883cd92e1fb8a50d34210fad7 Mon Sep 17 00:00:00 2001 From: famfo Date: Mon, 16 Feb 2026 21:38:55 +0100 Subject: [PATCH] tokio-xmpp: add option to disable xmpp_parsers validation --- tokio-xmpp/Cargo.toml | 2 ++ tokio-xmpp/ChangeLog | 1 + 2 files changed, 3 insertions(+) diff --git a/tokio-xmpp/Cargo.toml b/tokio-xmpp/Cargo.toml index 8a69b828..b7222fce 100644 --- a/tokio-xmpp/Cargo.toml +++ b/tokio-xmpp/Cargo.toml @@ -90,5 +90,7 @@ serde = [ "xmpp-parsers/serde" ] dns = [ "hickory-resolver", "idna" ] component = ["xmpp-parsers/component", "insecure-tcp"] +disable-validation = ["xmpp-parsers/disable-validation"] + [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(xmpprs_doc_build)'] } diff --git a/tokio-xmpp/ChangeLog b/tokio-xmpp/ChangeLog index e7eca84d..262a0dbf 100644 --- a/tokio-xmpp/ChangeLog +++ b/tokio-xmpp/ChangeLog @@ -3,6 +3,7 @@ Version NEXT: * Added: - Expose `client_auth` method to allow manual stream setups for advanced use cases. + - Add feature flag to disable validation in xmpp_parsers * Fixed: - Ignore missing "version" stream attribute for 0114 components. - Gate `AsRawFd` behind `ktls` feature to make Windows build work again.