Browse Source

Bump rustyline from 10.1.1 to 11.0.0 (#2612)

Bumps [rustyline](https://github.com/kkawakam/rustyline) from 10.1.1 to 11.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/kkawakam/rustyline/releases">rustyline's releases</a>.</em></p>
<blockquote>
<h2>11.0.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Refactor listeners by <a href="https://github.com/gwenn"><code>@​gwenn</code></a> in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/666">kkawakam/rustyline#666</a></li>
<li>Introduce History trait by <a href="https://github.com/gwenn"><code>@​gwenn</code></a> in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/604">kkawakam/rustyline#604</a></li>
<li>Fix cargo test --no-default-features by <a href="https://github.com/gwenn"><code>@​gwenn</code></a> in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/667">kkawakam/rustyline#667</a></li>
<li>Don't set height for skim by <a href="https://github.com/figsoda"><code>@​figsoda</code></a> in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/668">kkawakam/rustyline#668</a></li>
<li>Turn off skim's default features by <a href="https://github.com/figsoda"><code>@​figsoda</code></a> in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/669">kkawakam/rustyline#669</a></li>
<li>Add derive feature that reexports rustyline-derive's API by <a href="https://github.com/figsoda"><code>@​figsoda</code></a> in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/670">kkawakam/rustyline#670</a></li>
<li>docs: update branch for wez/wezterm by <a href="https://github.com/LeoDog896"><code>@​LeoDog896</code></a> in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/674">kkawakam/rustyline#674</a></li>
<li>Upgrade to Rust edition 2021 by <a href="https://github.com/gwenn"><code>@​gwenn</code></a> in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/675">kkawakam/rustyline#675</a></li>
<li>Replace memchr::memchr by matches! by <a href="https://github.com/gwenn"><code>@​gwenn</code></a> in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/676">kkawakam/rustyline#676</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/figsoda"><code>@​figsoda</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/668">kkawakam/rustyline#668</a></li>
<li><a href="https://github.com/LeoDog896"><code>@​LeoDog896</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/pull/674">kkawakam/rustyline#674</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/kkawakam/rustyline/compare/v10.1.0...v11.0.0">https://github.com/kkawakam/rustyline/compare/v10.1.0...v11.0.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="0384654d42"><code>0384654</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/issues/682">#682</a> from gwenn/11.0.0</li>
<li><a href="a63a2494c5"><code>a63a249</code></a> Prepare next release</li>
<li><a href="36f2739011"><code>36f2739</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/issues/680">#680</a> from figsoda/unsorted</li>
<li><a href="5486779fef"><code>5486779</code></a> Add FilenameCompleter::complete_path_unsorted</li>
<li><a href="b71975d9ea"><code>b71975d</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/issues/679">#679</a> from figsoda/clone</li>
<li><a href="792a828c94"><code>792a828</code></a> Implement Clone for Pair</li>
<li><a href="1986b16a43"><code>1986b16</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/issues/676">#676</a> from gwenn/memchr-to-matches</li>
<li><a href="c75f56de4d"><code>c75f56d</code></a> Replace memchr::memchr by matches!</li>
<li><a href="45b9e3d3c2"><code>45b9e3d</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/kkawakam/rustyline/issues/675">#675</a> from gwenn/edition</li>
<li><a href="6830d8ae48"><code>6830d8a</code></a> Fix clippy warning on windows</li>
<li>Additional commits viewable in <a href="https://github.com/kkawakam/rustyline/compare/v10.1.1...v11.0.0">compare view</a></li>
</ul>
</details>
<br />


[![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)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>

Co-authored-by: jedel1043 <jedel0124@gmail.com>
pull/2620/head
dependabot[bot] 2 years ago
parent
commit
096f65410f
  1. 16
      Cargo.lock
  2. 3
      boa_cli/Cargo.toml
  3. 2
      boa_cli/src/helper.rs
  4. 4
      boa_cli/src/main.rs

16
Cargo.lock generated

@ -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",

3
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"

2
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;

4
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) {

Loading…
Cancel
Save