Streaming log page with colors

Using the ansi-to-html crate.
This commit is contained in:
2023-06-06 21:14:29 -04:00
parent 6713a7a440
commit 786f3a194f
7 changed files with 50 additions and 36 deletions

11
Cargo.lock generated
View File

@@ -31,6 +31,16 @@ dependencies = [
"libc",
]
[[package]]
name = "ansi-to-html"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7bd918cc0ff933f0e6cf48a8f74584818ea43e07d1fba1f9251bb3df2a37ca2"
dependencies = [
"regex",
"thiserror",
]
[[package]]
name = "anyhow"
version = "1.0.71"
@@ -252,6 +262,7 @@ dependencies = [
name = "crawlnicle"
version = "0.1.0"
dependencies = [
"ansi-to-html",
"anyhow",
"argh",
"axum",