chore(deps): Bump rustyline from 10.1.1 to 11.0.0 (#7030)
* chore(deps): Bump rustyline from 10.1.1 to 11.0.0 Bumps [rustyline](https://github.com/kkawakam/rustyline) from 10.1.1 to 11.0.0. - [Release notes](https://github.com/kkawakam/rustyline/releases) - [Changelog](https://github.com/kkawakam/rustyline/blob/master/History.md) - [Commits](https://github.com/kkawakam/rustyline/compare/v10.1.1...v11.0.0) --- updated-dependencies: - dependency-name: rustyline dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: Run cargo hakari tasks * fix: rustyline 11 breakage --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: CircleCI[bot] <circleci@influxdata.com> Co-authored-by: Marco Neumann <marco@crepererum.net>pull/24376/head
parent
e9ec213b72
commit
6274252a17
|
@ -3663,18 +3663,6 @@ dependencies = [
|
|||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nix"
|
||||
version = "0.25.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f346ff70e7dbfd675fe90590b92d59ef2de15a8779ae305ebcbfd3f0caf59be4"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"bitflags",
|
||||
"cfg-if",
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nix"
|
||||
version = "0.26.2"
|
||||
|
@ -5016,9 +5004,9 @@ checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70"
|
|||
|
||||
[[package]]
|
||||
name = "rustyline"
|
||||
version = "10.1.1"
|
||||
version = "11.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c1e83c32c3f3c33b08496e0d1df9ea8c64d39adb8eb36a1ebb1440c690697aef"
|
||||
checksum = "5dfc8644681285d1fb67a467fb3021bfea306b99b4146b166a1fe3ada965eece"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"cfg-if",
|
||||
|
@ -5027,7 +5015,7 @@ dependencies = [
|
|||
"libc",
|
||||
"log",
|
||||
"memchr",
|
||||
"nix 0.25.1",
|
||||
"nix 0.26.2",
|
||||
"scopeguard",
|
||||
"unicode-segmentation",
|
||||
"unicode-width",
|
||||
|
@ -6824,6 +6812,7 @@ dependencies = [
|
|||
"log",
|
||||
"md-5",
|
||||
"memchr",
|
||||
"nix 0.26.2",
|
||||
"nom",
|
||||
"num-integer",
|
||||
"num-traits",
|
||||
|
|
|
@ -65,7 +65,7 @@ itertools = "0.10.5"
|
|||
libc = { version = "0.2" }
|
||||
num_cpus = "1.15.0"
|
||||
once_cell = { version = "1.17", features = ["parking_lot"] }
|
||||
rustyline = { version = "10.1", default-features = false }
|
||||
rustyline = { version = "11.0", default-features = false, features = ["with-file-history"]}
|
||||
serde_json = "1.0.93"
|
||||
snafu = "0.7"
|
||||
tempfile = "3.1.0"
|
||||
|
|
|
@ -6,7 +6,7 @@ use arrow::{
|
|||
};
|
||||
use futures::TryStreamExt;
|
||||
use observability_deps::tracing::{debug, info};
|
||||
use rustyline::{error::ReadlineError, hint::Hinter, Editor};
|
||||
use rustyline::{error::ReadlineError, hint::Hinter, history::FileHistory, Editor};
|
||||
use snafu::{ResultExt, Snafu};
|
||||
|
||||
use super::repl_command::ReplCommand;
|
||||
|
@ -156,7 +156,7 @@ impl rustyline::completion::Completer for RustylineHelper {
|
|||
/// one by one
|
||||
pub struct Repl {
|
||||
/// Rustyline editor for interacting with user on command line
|
||||
rl: Editor<RustylineHelper>,
|
||||
rl: Editor<RustylineHelper, FileHistory>,
|
||||
|
||||
/// Current prompt
|
||||
prompt: String,
|
||||
|
@ -245,7 +245,9 @@ impl Repl {
|
|||
Ok(ref line) if is_exit_command(line) => Ok(ReplCommand::Exit),
|
||||
Ok(ref line) => {
|
||||
let request = line.trim_end();
|
||||
self.rl.add_history_entry(request.to_owned());
|
||||
self.rl
|
||||
.add_history_entry(request.to_owned())
|
||||
.context(ReadlineSnafu)?;
|
||||
|
||||
request
|
||||
.try_into()
|
||||
|
|
|
@ -149,6 +149,7 @@ uuid = { version = "1", features = ["getrandom", "rng", "std", "v4"] }
|
|||
|
||||
[target.x86_64-unknown-linux-gnu.dependencies]
|
||||
io-lifetimes = { version = "1", features = ["close", "libc", "windows-sys"] }
|
||||
nix = { version = "0.26", features = ["acct", "aio", "dir", "env", "event", "feature", "fs", "hostname", "inotify", "ioctl", "kmod", "memoffset", "mman", "mount", "mqueue", "net", "personality", "pin-utils", "poll", "process", "pthread", "ptrace", "quota", "reboot", "resource", "sched", "signal", "socket", "term", "time", "ucontext", "uio", "user", "zerocopy"] }
|
||||
once_cell = { version = "1", default-features = false, features = ["unstable"] }
|
||||
rustix = { version = "0.36", features = ["fs", "io-lifetimes", "libc", "std", "termios", "use-libc-auxv"] }
|
||||
|
||||
|
@ -157,6 +158,7 @@ once_cell = { version = "1", default-features = false, features = ["unstable"] }
|
|||
|
||||
[target.x86_64-apple-darwin.dependencies]
|
||||
io-lifetimes = { version = "1", features = ["close", "libc", "windows-sys"] }
|
||||
nix = { version = "0.26", features = ["acct", "aio", "dir", "env", "event", "feature", "fs", "hostname", "inotify", "ioctl", "kmod", "memoffset", "mman", "mount", "mqueue", "net", "personality", "pin-utils", "poll", "process", "pthread", "ptrace", "quota", "reboot", "resource", "sched", "signal", "socket", "term", "time", "ucontext", "uio", "user", "zerocopy"] }
|
||||
once_cell = { version = "1", default-features = false, features = ["unstable"] }
|
||||
rustix = { version = "0.36", features = ["fs", "io-lifetimes", "libc", "std", "termios", "use-libc-auxv"] }
|
||||
|
||||
|
@ -165,6 +167,7 @@ once_cell = { version = "1", default-features = false, features = ["unstable"] }
|
|||
|
||||
[target.aarch64-apple-darwin.dependencies]
|
||||
io-lifetimes = { version = "1", features = ["close", "libc", "windows-sys"] }
|
||||
nix = { version = "0.26", features = ["acct", "aio", "dir", "env", "event", "feature", "fs", "hostname", "inotify", "ioctl", "kmod", "memoffset", "mman", "mount", "mqueue", "net", "personality", "pin-utils", "poll", "process", "pthread", "ptrace", "quota", "reboot", "resource", "sched", "signal", "socket", "term", "time", "ucontext", "uio", "user", "zerocopy"] }
|
||||
once_cell = { version = "1", default-features = false, features = ["unstable"] }
|
||||
rustix = { version = "0.36", features = ["fs", "io-lifetimes", "libc", "std", "termios", "use-libc-auxv"] }
|
||||
|
||||
|
|
Loading…
Reference in New Issue