diff options
| author | sigoden <sigoden@gmail.com> | 2023-03-04 09:02:57 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-04 09:02:57 +0800 |
| commit | 0fa1ae215ac1434591968818f8f75ad5b35d52ec (patch) | |
| tree | 2417bc0e95fad6886dd414cf407bb9fc0dbf3108 /Cargo.toml | |
| parent | 3ffebce8bbc530429086302ec4f9a95268c25d07 (diff) | |
| download | aichat-0fa1ae215ac1434591968818f8f75ad5b35d52ec.tar.gz | |
feat: support highlight reply markdown (#3)
* feat: support highlight reply markdown
* migrate markdown highlighter from termimad to mdcat
* optimize render
No need to clear screen when there is no newline in reply token
* handle ctrl-c when rendering stream
* update readme
* fix ctrlc don't abort acquire_stream when establish connection
* ensure render_stream's dtect_ctrlc is exit before next readline
This will make reedline don't throw err 'The cursor position could not be read within a normal duration'
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -16,16 +16,26 @@ keywords = ["chatgpt", "ai"] anyhow = "1.0.69" bytes = "1.4.0" clap = { version = "4.1.8", features = ["derive", "string"] } +crossterm = "0.26.1" dirs = "4.0.0" eventsource-stream = "0.2.3" futures-util = "0.3.26" -inquire = { version = "0.5.3", features = ["editor"] } +inquire = "0.5.3" +is-terminal = "0.4.4" reedline = "0.16.0" reqwest = { version = "0.11.14", features = ["json", "stream", "socks", "rustls-tls"], default-features = false} serde = { version = "1.0.152", features = ["derive"] } serde_json = "1.0.93" serde_yaml = "0.9.17" tokio = { version = "1.26.0", features = ["full"] } +mdcat = { version = "1.1.0", default_features = false, features =["static"] } +pulldown-cmark = { version = "0.9.2", default-features = false, features = ['simd'] } +crossbeam = "0.8.2" + +[dependencies.syntect] +version = "5.0.0" +default-features = false +features = ["parsing", "regex-fancy", "default-themes", "default-syntaxes"] [profile.release] lto = true |
