1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 13:00:36 -05:00

chore(repl): update rustyline to 10.0.0 (#15232)

This commit is contained in:
sigmaSd 2022-07-18 19:47:00 +01:00 committed by GitHub
parent 999cbfb52b
commit 1f04cea160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 13 deletions

15
Cargo.lock generated
View file

@ -2728,12 +2728,11 @@ dependencies = [
[[package]] [[package]]
name = "nix" name = "nix"
version = "0.23.0" version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f305c2c2e4c39a82f7bf0bf65fb557f9070ce06781d4f2454295cc34b1c43188" checksum = "195cdbc1741b8134346d515b3a56a1c94b0912758009cfd53f99ea0f57b065fc"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"cc",
"cfg-if", "cfg-if",
"libc", "libc",
"memoffset", "memoffset",
@ -3625,9 +3624,9 @@ dependencies = [
[[package]] [[package]]
name = "rustyline" name = "rustyline"
version = "9.1.2" version = "10.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db7826789c0e25614b03e5a54a0717a86f9ff6e6e5247f92b369472869320039" checksum = "1d1cd5ae51d3f7bf65d7969d579d502168ef578f289452bd8ccc91de28fda20e"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"cfg-if", "cfg-if",
@ -3639,7 +3638,6 @@ dependencies = [
"nix", "nix",
"radix_trie", "radix_trie",
"scopeguard", "scopeguard",
"smallvec",
"unicode-segmentation", "unicode-segmentation",
"unicode-width", "unicode-width",
"utf8parse", "utf8parse",
@ -3648,10 +3646,11 @@ dependencies = [
[[package]] [[package]]
name = "rustyline-derive" name = "rustyline-derive"
version = "0.6.0" version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb35a55ab810b5c0fe31606fe9b47d1354e4dc519bec0a102655f78ea2b38057" checksum = "107c3d5d7f370ac09efa62a78375f94d94b8a33c61d8c278b96683fb4dbf2d8d"
dependencies = [ dependencies = [
"proc-macro2 1.0.39",
"quote 1.0.18", "quote 1.0.18",
"syn 1.0.96", "syn 1.0.96",
] ]

View file

@ -86,8 +86,8 @@ pin-project = "1.0.11" # don't pin because they yank crates from cargo
rand = { version = "=0.8.5", features = ["small_rng"] } rand = { version = "=0.8.5", features = ["small_rng"] }
regex = "=1.5.6" regex = "=1.5.6"
ring = "=0.16.20" ring = "=0.16.20"
rustyline = { version = "=9.1.2", default-features = false } rustyline = { version = "=10.0.0", default-features = false, features = ["custom-bindings"] }
rustyline-derive = "=0.6.0" rustyline-derive = "=0.7.0"
secure_tempfile = { version = "=3.3.0", package = "tempfile" } # different name to discourage use in tests secure_tempfile = { version = "=3.3.0", package = "tempfile" } # different name to discourage use in tests
semver-parser = "=0.10.2" semver-parser = "=0.10.2"
serde = { version = "=1.0.139", features = ["derive"] } serde = { version = "=1.0.139", features = ["derive"] }
@ -122,7 +122,7 @@ trust-dns-client = "=0.21.2"
trust-dns-server = "=0.21.2" trust-dns-server = "=0.21.2"
[target.'cfg(unix)'.dev-dependencies] [target.'cfg(unix)'.dev-dependencies]
nix = "=0.23.0" nix = "=0.24.2"
[package.metadata.winres] [package.metadata.winres]
# This section defines the metadata that appears in the deno.exe PE header. # This section defines the metadata that appears in the deno.exe PE header.

View file

@ -363,7 +363,8 @@ impl ReplEditor {
.completion_type(CompletionType::List) .completion_type(CompletionType::List)
.build(); .build();
let mut editor = Editor::with_config(editor_config); let mut editor =
Editor::with_config(editor_config).expect("Failed to create editor.");
editor.set_helper(Some(helper)); editor.set_helper(Some(helper));
editor.load_history(&history_file_path).unwrap_or(()); editor.load_history(&history_file_path).unwrap_or(());
editor.bind_sequence( editor.bind_sequence(

View file

@ -88,7 +88,7 @@ fwdansi = "1.1.0"
winapi = { version = "0.3.9", features = ["commapi", "knownfolders", "mswsock", "objbase", "shlobj", "tlhelp32", "winbase", "winerror", "winsock2"] } winapi = { version = "0.3.9", features = ["commapi", "knownfolders", "mswsock", "objbase", "shlobj", "tlhelp32", "winbase", "winerror", "winsock2"] }
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
nix = "=0.23.0" nix = "=0.24.2"
[dev-dependencies] [dev-dependencies]
# Used in benchmark # Used in benchmark