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
Cargo.toml xmlstream: implement simple timeout logic 2024-09-01 10:02:36 +02:00
ChangeLog tokio_xmpp: introduce xmlstream module 2024-08-29 16:42:57 +02:00
logo.svg
README.md

TODO

  • allow tls verify customization
  • more tests