summaryrefslogtreecommitdiffstats
path: root/Cargo.lock
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-04 15:00:11 +0800
committerGitHub <noreply@github.com>2023-03-04 15:00:11 +0800
commitb058cca46d4c8a7e46734b2eb86e6993dd5bee8f (patch)
tree8adea8168bd4bedf3a93455316263c6439956c5a /Cargo.lock
parentdbdb2ed125214d7dab9dd2ef6ed03e1062b7cc27 (diff)
downloadaichat-b058cca46d4c8a7e46734b2eb86e6993dd5bee8f.tar.gz
refactor: use tui for better stream render (#5)
* feat: show question in the begining of stream render * refactor: use tui for better stream render * trivial updates * fine-tune stream text merging
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock32
1 files changed, 32 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 41a438a..b975269 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -21,6 +21,7 @@ dependencies = [
name = "aichat"
version = "0.1.0"
dependencies = [
+ "ansi-to-tui",
"anyhow",
"bytes",
"clap",
@@ -40,6 +41,7 @@ dependencies = [
"serde_yaml",
"syntect",
"tokio",
+ "tui",
]
[[package]]
@@ -67,6 +69,17 @@ dependencies = [
]
[[package]]
+name = "ansi-to-tui"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3460d7beaf8b192c09a55933da038ccd514f00efdb37d7d87f3ce078336b47e9"
+dependencies = [
+ "nom",
+ "thiserror",
+ "tui",
+]
+
+[[package]]
name = "ansi_term"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -207,6 +220,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be"
[[package]]
+name = "cassowary"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df8670b8c7b9dae1793364eafadf7239c40d669904660c5960d74cfd80b46a53"
+
+[[package]]
name = "cc"
version = "1.0.79"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2354,6 +2373,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0609f771ad9c6155384897e1df4d948e692667cc0588548b68eb44d052b27633"
[[package]]
+name = "tui"
+version = "0.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ccdd26cbd674007e649a272da4475fb666d3aa0ad0531da7136db6fab0e5bad1"
+dependencies = [
+ "bitflags",
+ "cassowary",
+ "crossterm 0.25.0",
+ "unicode-segmentation",
+ "unicode-width",
+]
+
+[[package]]
name = "unicase"
version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"