chore: update deps

pull/147/head
sigoden 8 months ago
parent bbf3672a5f
commit 90bdc1b7db

1035
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -14,18 +14,18 @@ keywords = ["chatgpt", "ai", "gpt", "repl"]
anyhow = "1.0.69"
bytes = "1.4.0"
clap = { version = "4.1.8", features = ["derive", "string"] }
dirs = "4.0.0"
dirs = "5.0.0"
eventsource-stream = "0.2.3"
futures-util = "0.3.26"
inquire = "0.5.3"
inquire = "0.6.2"
is-terminal = "0.4.4"
reedline = "0.19.0"
reedline = "0.25.0"
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.93"
serde_yaml = "0.9.17"
tokio = { version = "1.26.0", features = ["full"] }
crossbeam = "0.8.2"
crossterm = "0.26.1"
crossterm = "0.27.0"
chrono = "0.4.23"
atty = "0.2.14"
unicode-width = "0.1.10"
@ -37,7 +37,7 @@ fancy-regex = "0.11.0"
base64 = "0.21.0"
rustc-hash = "1.1.0"
bstr = "1.3.0"
nu-ansi-term = "0.47.0"
nu-ansi-term = "0.49.0"
arboard = { version = "3.2.0", default-features = false }
[dependencies.reqwest]
@ -50,9 +50,6 @@ version = "5.0.0"
default-features = false
features = ["parsing", "regex-onig"]
[patch.crates-io]
reedline = { git = "https://github.com/nushell/reedline.git", branch = "main"}
[profile.release]
lto = true
strip = true

@ -17,7 +17,7 @@ use crate::term;
use anyhow::{Context, Result};
use reedline::Signal;
use std::borrow::Cow;
use std::sync::Arc;
use std::rc::Rc;
pub const REPL_COMMANDS: [(&str, &str); 13] = [
(".info", "Print system-wide information"),
@ -42,7 +42,7 @@ impl Repl {
print_now!("Welcome to aichat {}\n", env!("CARGO_PKG_VERSION"));
print_now!("Type \".help\" for more information.\n");
let mut already_ctrlc = false;
let handler = Arc::new(handler);
let handler = Rc::new(handler);
loop {
if abort.aborted_ctrld() {
break;
@ -85,7 +85,7 @@ impl Repl {
Ok(())
}
fn handle_line(&mut self, handler: &Arc<ReplCmdHandler>, line: &str) -> Result<bool> {
fn handle_line(&mut self, handler: &Rc<ReplCmdHandler>, line: &str) -> Result<bool> {
let line = clean_multiline_symbols(line);
match parse_command(line.as_ref()) {
Some((cmd, args)) => match cmd {

Loading…
Cancel
Save