xmpp-parsers/jingle_ice_udp: Update to version 1.1

Emmanuel Gil Peyrot created

'foundation' is now a String, and 'network' is optional.

See https://github.com/xsf/xeps/pull/1014

Change summary

xmpp-parsers/doap.xml              |  2 +-
xmpp-parsers/src/jingle_ice_udp.rs | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)

Detailed changes

xmpp-parsers/doap.xml 🔗

@@ -236,7 +236,7 @@
         <xmpp:SupportedXep>
             <xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0176.html"/>
             <xmpp:status>complete</xmpp:status>
-            <xmpp:version>1.0</xmpp:version>
+            <xmpp:version>1.1</xmpp:version>
             <xmpp:since>0.13.0</xmpp:since>
         </xmpp:SupportedXep>
     </implements>

xmpp-parsers/src/jingle_ice_udp.rs 🔗

@@ -75,7 +75,7 @@ generate_element!(
         component: Required<u8> = "component",
 
         /// A Foundation as defined in ICE-CORE.
-        foundation: Required<u8> = "foundation",
+        foundation: Required<String> = "foundation",
 
         /// An index, starting at 0, that enables the parties to keep track of updates to the
         /// candidate throughout the life of the session.
@@ -88,10 +88,6 @@ generate_element!(
         /// either an IPv4 address or an IPv6 address.
         ip: Required<IpAddr> = "ip",
 
-        /// An index, starting at 0, referencing which network this candidate is on for a given
-        /// peer.
-        network: Required<u8> = "network",
-
         /// The port at the candidate IP address.
         port: Required<u16> = "port",
 
@@ -107,6 +103,10 @@ generate_element!(
         /// A related port as defined in ICE-CORE.
         rel_port: Option<u16> = "rel-port",
 
+        /// An index, starting at 0, referencing which network this candidate is on for a given
+        /// peer.
+        network: Option<u8> = "network",
+
         /// A Candidate Type as defined in ICE-CORE.
         type_: Required<Type> = "type",
     ]
@@ -125,7 +125,7 @@ mod tests {
     fn test_size() {
         assert_size!(Transport, 68);
         assert_size!(Type, 1);
-        assert_size!(Candidate, 80);
+        assert_size!(Candidate, 92);
     }
 
     #[cfg(target_pointer_width = "64")]
@@ -133,7 +133,7 @@ mod tests {
     fn test_size() {
         assert_size!(Transport, 136);
         assert_size!(Type, 1);
-        assert_size!(Candidate, 104);
+        assert_size!(Candidate, 128);
     }
 
     #[test]