tokio-xmpp: Add syntax highlighting to debug logs
This uses syntect, and has been checked to have zero overhead when it is disabled.
This commit is contained in:
parent
99f3811c71
commit
17335136fe
2 changed files with 47 additions and 6 deletions
|
|
@ -30,6 +30,7 @@ minidom = "0.15"
|
|||
rxml = "0.9.1"
|
||||
webpki-roots = { version = "0.23", optional = true }
|
||||
rand = "^0.8"
|
||||
syntect = { version = "5", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.10"
|
||||
|
|
@ -41,3 +42,4 @@ rustc_version = "0.4"
|
|||
default = ["tls-native"]
|
||||
tls-rust = ["tokio-rustls", "webpki-roots"]
|
||||
tls-native = ["tokio-native-tls", "native-tls"]
|
||||
syntax-highlighting = ["syntect"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue