204c82e
xso: add more doc comments throughout
Jonas Schäfer created
204c82e
xso: add more doc comments throughout
Jonas Schäfer created
5b1706a
tokio-xmpp: Update dependencies
Update tokio_rustls, idna, webpki_roots. https://github.com/rustls/rustls/releases/tag/v%2F0.22.0 > ConfigBuilder::with_safe_defaults - calls to this can simply be deleted since safe defaults are now implicit. > OwnedTrustAnchor - use rustls_pki_types::TrustAnchor instead, and replace from_subject_spki_name_constraints with direct assignment to the struct fields. `RootCertStore::add_trust_anchors` seems to be removed too. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
6b4bdc1
xso: Bump version to 0.1.1
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
c0f1aa6
xmpp-parsers: Bump version to 0.21.0
Emmanuel Gil Peyrot created
09c5ad5
xmpp-parsers: Convert jingle_s5b’s Candidate to xso
Emmanuel Gil Peyrot created
7268016
xmpp-parsers: Convert ibb to xso
Emmanuel Gil Peyrot created
1a7dec6
xmpp-parsers: Convert sm’s Enable and Enabled to xso
Emmanuel Gil Peyrot created
01a61c6
xmpp-parsers: Convert pubsub’s Default to xso
Emmanuel Gil Peyrot created
5b5df16
xmpp-parsers: Convert jingle_rtp_hdrext to xso
Emmanuel Gil Peyrot created
0b92061
xmpp-parsers: Convert jingle_ibb to xso
Emmanuel Gil Peyrot created
2eb6ca2
xmpp-parsers: Remove util::text_node_codecs
This codec system was useful for the previous parser style, but we have converted them all to xso now!
Emmanuel Gil Peyrot created
0c9e478
xmpp-parsers: Convert media_element to xso
The API changed here, URI became Uri to be more in line with the coding style. Also we don’t attempt to trim them any more because that was only used in the examples, and nowhere in the text of the specification did it say that those had to be trimmed.
Emmanuel Gil Peyrot created
2b333ce
xso: Add an EmptyAsError text codec
As its name implies, this codec emits an error when the parsed string is empty.
Emmanuel Gil Peyrot created
4be297d
xmpp-parsers: Convert component to xso
Emmanuel Gil Peyrot created
e9b6fd5
xmpp-parsers: Convert avatar to xso
Emmanuel Gil Peyrot created
a2ece70
xmpp-parsers: Convert vcard to xso
Emmanuel Gil Peyrot created
dc0db38
xmpp-parsers: Convert jingle_dtls_srtp to xso
Emmanuel Gil Peyrot created
f0b51de
xso: Import the ColonSeparatedHex text codec from xmpp-parsers
This codec converts from a colon-separated case-insensitive hexadecimal string into a Vec of bytes, and back to a lowercase colon-separated hexadecimal string. Each byte must be separated by exactly one colon.
Emmanuel Gil Peyrot created
8a48244
xmpp-parsers: Convert vcard_update to xso
Emmanuel Gil Peyrot created
16204a1
xso: Import the FixedHex text codec from xmpp-parsers
This codec converts from a fixed-size case-insensitive hexadecimal string into an array of bytes, and back to a lowercase hexadecimal string.
Emmanuel Gil Peyrot created
387fccc
xmpp-parsers: Write the ChangeLog for 0.21.0
Emmanuel Gil Peyrot created
9346aed
xmpp-parsers: Update the version in the DOAP
We are close to the release!
Emmanuel Gil Peyrot created
11d40ba
Unify version string formats
https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#caret-requirements "^1.2.3" is strictly equivalent to "1.2.3" Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
5fc12c4
xmpp: Use tokio-xmpp’s reexports of jid and minidom
Emmanuel Gil Peyrot created
e9b226e
tokio-xmpp: Import Jid, BareJid and Element properly
xmpp-parsers has stopped reexporting them, instead it reexports only the crates themselves.
Emmanuel Gil Peyrot created
7b66de1
xmpp-parsers: Stop reexporting extra symbols
Let’s continue reexporting jid and minidom, but not their inner pub items, users of this crate can go one level deeper if they need that. Only xso::error::Error is still useful to reexport, as this is part of the public API of all of our parsers.
Emmanuel Gil Peyrot created
ab35c23
xso: Bump version to 0.1.0
Jonas Schäfer created
62b2966
xmpp-parsers: Simplify the page-flip logic for MAM
This only has to be a bool, no need for this Option<bool>.
Emmanuel Gil Peyrot created
fa28460
xmpp-parsers: Fix typos noticed by codespell
Emmanuel Gil Peyrot created
6e1f24c
xso: Apply clippy’s suggestions
Emmanuel Gil Peyrot created
ca53892
xso: add README files
Jonas Schäfer created
d6d9a7a
Add changelog stub files for xso crates
Jonas Schäfer created
7bc7e7a
xso: remove remnants of IntoXml
Jonas Schäfer created
ccf38cd
Port everything over to AsXml
Jonas Schäfer created
4910b01
xso: add text conversion traits for AsXml
Jonas Schäfer created
569b6e3
xso: provide adapter for AsXml implementation based on Into<Element>
Analogous to the already existing `IntoXml` implementation helpers based on an `Into<Element>` implementation on a type, this provides the utilities for `AsXml`. This is of course exceptionally inefficient, but it is only needed transitionally until we have everything migrated to derive macros or otherwise rewritten in terms of AsXml/FromXml.
Jonas Schäfer created
d12b6c3
xso: implement AsXml for minidom::Element
Jonas Schäfer created
d29b89d
xso: introduce AsXml trait
This will soon replace the IntoXml trait. The idea here is that we don't generally need to take ownership of values which are going to be transformed into XML: most of the time, the XML text is created by building a string from some more specific type, such as an integer or an enum. Requiring to clone an entire structure for this purpose is wasteful. In other cases, we actually could reference data right from the structs we are converting to XML. In those cases, assuming that an iterator always generates owned data would be incorrect, too. Hence, we introduce a new `Item` type which closely mirrors the `rxml::Item` type, but where the constituents are `Cow`. In the upcoming changes, we are going to work toward replacing all uses of `IntoXml` with `AsXml`, as well as modifying the macros accordingly.
Jonas Schäfer created
25adde9
Bump rxml to 0.11.1
Jonas Schäfer created
0ef646d
jid: Bump version to 0.11.1
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
f35bbcb
minidom: Bump version to 0.16
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
f648ab0
minidom: Update changelog
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
cc123e3
parsers: Update jid to 0.11
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
86c1361
Remove unused paths in multiple Cargo.toml
Paths are already patched in the workspace's [patch.crates-io] block. Not sure why this was added in the first place. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
9328830
jid: bump version to 0.11
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
318e5a1
jid: Update Changelog
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
77eadec
sasl: bump version to 0.5.2
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
25ee51f
sasl: Update Changelog
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Maxime “pep” Buquet created
b4b0a7d
jid: Simplify from_parts() a bit
By defining the variables in the parent scope, we can avoid one level of indentation for the tuple, which makes things more readable. Additionally, we don’t need to call .to_str() on the passed objects, they automatically Deref to &str for the format!() call.
Emmanuel Gil Peyrot created
c631e4e
xmpp-parsers: Implement XEP-0386: Bind 2
This depends on XEP-0313 for its MAM metadata, and many others such as XEP-0198, XEP-0280 and XEP-0352 for the inline features, but we currently provide those as minidom Elements instead.
Emmanuel Gil Peyrot created