Jonas Schäfer
58698f633f
xso: only take reference in transform
...
This avoids the need for an expensive clone. Since we switched to AsXml
instead of IntoXml, we don't necessarily have to clone the data when
building new elements, only when it's absolutely necessary. The clones
then happen implicitly in the ItemToEvent iterator used internally.
This mostly fixes #86 , with the caveat that there's no absolutely cheap
test: On success, the entire element will be copied, while on failure,
you learn about it rather quickly.
2024-12-20 12:44:43 +01:00
..
muc
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
pubsub
xmpp-parsers: Replace all instances of bool attributes with bool
2024-12-16 13:32:49 +00:00
util
xso: only take reference in transform
2024-12-20 12:44:43 +01:00
attention.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
avatar.rs
parsers: port more things to derive macros
2024-08-03 13:05:37 +02:00
bind.rs
xmpp-parsers: Parse the bind feature in its module, with required
2024-08-06 16:14:42 +02:00
bind2.rs
xmpp-parsers: Convert the remaining bind2 elements to xso
2024-08-06 16:36:10 +02:00
blocking.rs
xmpp-parsers: Convert blocking to xso
2024-08-05 15:02:25 +00:00
bob.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
bookmarks.rs
parsers/xmpp: MUC bookmarks have nickname typed as ResourcePart
2024-12-18 15:43:09 +00:00
bookmarks2.rs
parsers/xmpp: MUC bookmarks have nickname typed as ResourcePart
2024-12-18 15:43:09 +00:00
caps.rs
xmpp-parsers: Simplify hash conversion to Vec
2024-12-15 17:17:01 +00:00
carbons.rs
xmpp-parsers: Convert Forwarded to xso
2024-08-09 16:08:26 +02:00
cert_management.rs
xmpp-parsers: Convert cert_management to xso
2024-08-09 16:08:26 +02:00
chatstates.rs
parsers: port enums over to derive macros
2024-08-03 12:19:42 +02:00
component.rs
xso-proc: add fancy hack to allow codec = Foo<Bar>
2024-08-03 12:14:26 +02:00
csi.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
data_forms.rs
xso: allow omission of namespace and name on extracts
2024-08-03 15:25:46 +02:00
data_forms_validate.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
date.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
delay.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
disco.rs
xmpp-parsers: Convert DiscoInfoResult to xso
2024-12-18 18:50:50 +01:00
ecaps2.rs
xmpp-parsers: Simplify hash conversion to Vec
2024-12-15 17:17:01 +00:00
eme.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
extdisco.rs
xmpp-parsers: Replace all instances of bool attributes with bool
2024-12-16 13:32:49 +00:00
fast.rs
xmpp-parsers: Replace all instances of bool attributes with bool
2024-12-16 13:32:49 +00:00
forwarding.rs
xmpp-parsers: Convert Forwarded to xso
2024-08-09 16:08:26 +02:00
hashes.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
http_upload.rs
parsers: port more things to derive macros
2024-08-03 13:05:37 +02:00
ibb.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
ibr.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
idle.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
iq.rs
parsers: provide stub FromXml/AsXml implementations on Iq
2024-08-12 12:32:12 +02:00
jid_prep.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
jingle.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
jingle_dtls_srtp.rs
xmpp-parsers: Convert jingle_dtls_srtp to xso
2024-07-25 18:42:18 +02:00
jingle_ft.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
jingle_grouping.rs
parsers: port more things to derive macros
2024-08-03 13:05:37 +02:00
jingle_ibb.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
jingle_ice_udp.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
jingle_message.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
jingle_raw_udp.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
jingle_rtcp_fb.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
jingle_rtp.rs
xmpp-parsers: Convert Jingle RTP to xso
2024-08-05 15:02:25 +00:00
jingle_rtp_hdrext.rs
xmpp-parsers: Convert jingle_rtp_hdrext to xso
2024-07-25 18:42:18 +02:00
jingle_s5b.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
jingle_ssma.rs
parsers: port more things to derive macros
2024-08-03 13:05:37 +02:00
jingle_thumbnails.rs
xmpp-parsers: Fix jingle thumbnails wrt the XEP changes
2024-12-17 00:27:15 +01:00
legacy_omemo.rs
xmpp-parsers: Replace all instances of bool attributes with bool
2024-12-16 13:32:49 +00:00
lib.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
mam.rs
xmpp-parsers: Replace all instances of bool attributes with bool
2024-12-16 13:32:49 +00:00
mam_prefs.rs
xmpp-parsers: Convert MAM prefs to xso
2024-08-05 15:02:25 +00:00
media_element.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
message.rs
parsers: Rename Message::get_best_owned to get_best_cloned
2024-12-20 00:29:03 +01:00
message_correct.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
message_displayed.rs
xmpp-parsers: Implement XEP-0490: Message Displayed Synchronization
2024-12-15 17:30:24 +00:00
mix.rs
xso: allow omission of namespace and name on extracts
2024-08-03 15:25:46 +02:00
mood.rs
parsers: port enums over to derive macros
2024-08-03 12:19:42 +02:00
nick.rs
parsers: port some elements with children to derive macros
2024-07-26 22:31:42 +02:00
ns.rs
xmpp-parsers: Implement XEP-0490: Message Displayed Synchronization
2024-12-15 17:30:24 +00:00
occupant_id.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
oob.rs
xmpp-parsers: Convert OOB to xso
2024-08-05 15:02:25 +00:00
openpgp.rs
parsers: port more things to derive macros
2024-08-03 13:05:37 +02:00
ping.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
presence.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
private.rs
xso: reject duplicate children
2024-08-03 11:58:19 +00:00
reactions.rs
parsers: port more things to derive macros
2024-08-03 13:05:37 +02:00
receipts.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
roster.rs
xmpp-parsers: Convert roster item to xso
2024-08-09 16:08:26 +02:00
rsm.rs
parsers: port more things to derive macros
2024-08-03 13:05:37 +02:00
rtt.rs
xmpp-parsers: Simplify RTT implementation using more xso
2024-08-05 15:02:25 +00:00
sasl.rs
parsers: add umbrella enum for SASL elements
2024-08-12 12:32:12 +02:00
sasl2.rs
parsers: add support for <optional/> in stream management feature
2024-09-01 13:01:29 +02:00
sasl_cb.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
server_info.rs
Add support for XEP-0122: Data Forms Validation
2024-06-24 15:15:02 +02:00
sm.rs
tokio_xmpp: implement high-level, resilient stanza stream
2024-12-17 18:16:02 +01:00
stanza_error.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
stanza_id.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
starttls.rs
xmpp-parsers: Add test for StartTLS
2024-12-15 17:45:26 +01:00
stream.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
stream_error.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
stream_features.rs
tokio_xmpp: implement high-level, resilient stanza stream
2024-12-17 18:16:02 +01:00
stream_limits.rs
parsers: Replace std stuff with alloc/core stuff
2024-12-19 20:45:38 +01:00
time.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
tune.rs
xmpp-parsers: Convert Tune to xso
2024-07-31 15:38:10 +00:00
vcard.rs
xmpp-parsers: Convert vCard-temp to xso
2024-12-15 17:38:56 +00:00
vcard_update.rs
xso-proc: add fancy hack to allow codec = Foo<Bar>
2024-08-03 12:14:26 +02:00
version.rs
parsers: port version to derive macros
2024-08-04 16:07:14 +02:00
websocket.rs
xmpp-parsers: Stop reexporting extra symbols
2024-07-25 14:36:09 +00:00
xhtml.rs
parsers: use Error type from xso
2024-06-23 09:40:52 +02:00