From 096f65410ffaaab4e448db98f3d09d87bf91b7f2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Feb 2023 22:27:55 +0000 Subject: [PATCH] Bump rustyline from 10.1.1 to 11.0.0 (#2612) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [rustyline](https://github.com/kkawakam/rustyline) from 10.1.1 to 11.0.0.
Release notes

Sourced from rustyline's releases.

11.0.0

What's Changed

New Contributors

Full Changelog: https://github.com/kkawakam/rustyline/compare/v10.1.0...v11.0.0

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rustyline&package-manager=cargo&previous-version=10.1.1&new-version=11.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Co-authored-by: jedel1043 --- Cargo.lock | 16 ++++++++-------- boa_cli/Cargo.toml | 3 +-- boa_cli/src/helper.rs | 2 +- boa_cli/src/main.rs | 4 +++- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b13bf61827..fdf2682ccf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -306,7 +306,6 @@ dependencies = [ "pollster", "regex", "rustyline", - "rustyline-derive", "serde_json", ] @@ -2564,14 +2563,14 @@ dependencies = [ [[package]] name = "nix" -version = "0.25.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f346ff70e7dbfd675fe90590b92d59ef2de15a8779ae305ebcbfd3f0caf59be4" +checksum = "bfdda3d196821d6af13126e40375cdf7da646a96114af134d5f417a9a1dc8e1a" dependencies = [ - "autocfg", "bitflags", "cfg-if 1.0.0", "libc", + "static_assertions", ] [[package]] @@ -3314,9 +3313,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 1.0.0", @@ -3328,6 +3327,7 @@ dependencies = [ "memchr", "nix", "radix_trie", + "rustyline-derive", "scopeguard", "unicode-segmentation", "unicode-width", @@ -3337,9 +3337,9 @@ dependencies = [ [[package]] name = "rustyline-derive" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "107c3d5d7f370ac09efa62a78375f94d94b8a33c61d8c278b96683fb4dbf2d8d" +checksum = "8218eaf5d960e3c478a1b0f129fa888dd3d8d22eb3de097e9af14c1ab4438024" dependencies = [ "proc-macro2", "quote", diff --git a/boa_cli/Cargo.toml b/boa_cli/Cargo.toml index dd5bfcc964..f2b8d36f09 100644 --- a/boa_cli/Cargo.toml +++ b/boa_cli/Cargo.toml @@ -15,8 +15,7 @@ rust-version.workspace = true boa_engine = { workspace = true, features = ["deser", "console", "flowgraph"] } boa_ast = { workspace = true, features = ["serde"]} boa_parser.workspace = true -rustyline = "10.1.1" -rustyline-derive = "0.7.0" +rustyline = { version = "11.0.0", features = ["derive"]} clap = { version = "4.1.6", features = ["derive"] } serde_json = "1.0.93" colored = "2.0.0" diff --git a/boa_cli/src/helper.rs b/boa_cli/src/helper.rs index b86707317f..5cdb2e1578 100644 --- a/boa_cli/src/helper.rs +++ b/boa_cli/src/helper.rs @@ -5,8 +5,8 @@ use rustyline::{ error::ReadlineError, highlight::Highlighter, validate::{MatchingBracketValidator, ValidationContext, ValidationResult, Validator}, + Completer, Helper, Hinter, }; -use rustyline_derive::{Completer, Helper, Hinter}; use std::borrow::Cow; const STRING_COLOR: Color = Color::Green; diff --git a/boa_cli/src/main.rs b/boa_cli/src/main.rs index ca520308c1..bb5fb9bc91 100644 --- a/boa_cli/src/main.rs +++ b/boa_cli/src/main.rs @@ -321,7 +321,9 @@ fn main() -> Result<(), io::Error> { Err(ReadlineError::Interrupted | ReadlineError::Eof) => break, Ok(line) => { - editor.add_history_entry(&line); + editor + .add_history_entry(&line) + .map_err(|e| io::Error::new(io::ErrorKind::Other, e))?; if args.has_dump_flag() { if let Err(e) = dump(&line, &args, &mut context) {