xmpp-rs/tokio-xmpp
Emmanuel Gil Peyrot 425be4bef4 tokio-xmpp: Improve highlight_xml()
First switch to LazyLock from OnceLock, to simplify the code.

Then concatenate the colour reset escape code instead of using
format!(), since the vast majority of those strings have more capacity
than their length it will avoid a reallocation in most cases.
2024-09-01 12:32:50 +02:00
..
examples xmlstream: implement simple timeout logic 2024-09-01 10:02:36 +02:00
src tokio-xmpp: Improve highlight_xml() 2024-09-01 12:32:50 +02:00
.gitignore Prepare for merge: Move all tokio-xmpp files into tokio-xmpp/ 2019-10-18 14:16:01 +02:00
Cargo.toml xmlstream: implement simple timeout logic 2024-09-01 10:02:36 +02:00
ChangeLog
logo.svg
README.md

TODO

  • allow tls verify customization
  • more tests