From b51d6cec3a8b78c1695a867d959660c1b3e17369 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 30 Jun 2024 16:34:31 +0200 Subject: [PATCH] xmpp-parsers: Reorder the XEP-0122 and XEP-0484 namespaces We keep the list ordered by XEP number, so that it is easier to search into. --- parsers/src/ns.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parsers/src/ns.rs b/parsers/src/ns.rs index 2915f2330dfabe689270272152801bacd6421372..c279103c502e2c498a5a86699d257af4f64d945b 100644 --- a/parsers/src/ns.rs +++ b/parsers/src/ns.rs @@ -100,6 +100,9 @@ pub const CAPS: &str = "http://jabber.org/protocol/caps"; /// XEP-0118: User Tune pub const TUNE: &str = "http://jabber.org/protocol/tune"; +/// XEP-0122: Data Forms Validation +pub const XDATA_VALIDATE: &str = "http://jabber.org/protocol/xdata-validate"; + /// XEP-0153: vCard-Based Avatars pub const VCARD_UPDATE: &str = "vcard-temp:x:update"; @@ -290,8 +293,8 @@ pub const OID: &str = "urn:xmpp:occupant-id:0"; /// XEP-0444: Message Reactions pub const REACTIONS: &str = "urn:xmpp:reactions:0"; -/// XEP-0122: Data Forms Validation -pub const XDATA_VALIDATE: &str = "http://jabber.org/protocol/xdata-validate"; +/// XEP-0484: Fast Authentication Streamlining Tokens +pub const FAST: &str = "urn:xmpp:fast:0"; /// Alias for the main namespace of the stream, that is "jabber:client" when /// the component feature isn’t enabled. @@ -302,6 +305,3 @@ pub const DEFAULT_NS: &str = JABBER_CLIENT; /// "jabber:component:accept" when the component feature is enabled. #[cfg(feature = "component")] pub const DEFAULT_NS: &str = COMPONENT_ACCEPT; - -/// XEP-0484: Fast Authentication Streamlining Tokens -pub const FAST: &str = "urn:xmpp:fast:0";