Skip to content

Bump dependency rustyline to v17.0.1 - #12

Merged
Utagai merged 4 commits into
Utagai:masterfrom
LanHikari22:fix-11-upgrade-rustyline
Sep 28, 2025
Merged

Bump dependency rustyline to v17.0.1#12
Utagai merged 4 commits into
Utagai:masterfrom
LanHikari22:fix-11-upgrade-rustyline

Conversation

@LanHikari22

Copy link
Copy Markdown
Contributor
  • Bump dependency rustyline-derive to v0.11.1
  • shell creation now returns a result

Closes #11.

- Bump dependency rustyline-derive to v0.11.1
- shell creation now returns a result
@LanHikari22

LanHikari22 commented Sep 19, 2025

Copy link
Copy Markdown
Contributor Author

You can optionally find my investigation notes for this here.

- Minor changes to resolve lints
@Utagai

Utagai commented Sep 25, 2025

Copy link
Copy Markdown
Owner

I'll be back to check out these PRs once I've recovered (I got sick during travel). I think regardless, merging #10 first makes a lot of sense so we can get checks on this change running.

I think both of these PRs is likely very close to the finish line so you can probably expect a pair of LGTMs from me within the next few days once I'm in better shape.

@LanHikari22

Copy link
Copy Markdown
Contributor Author

Awesome! Hope you feel better soon!

@Utagai Utagai left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just merged #10! Thanks for your great work!

Let's get this PR rebased and the conflicts resolved. Thanks for the plumbing work here and dealing with the types changes!

Comment thread src/command/history.rs
.map(|h| h.to_string())
.collect::<Vec<String>>()
.join("\n\t");
// A bit of a mouthful. We grab the underlying history of the shell, collect its elements

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding this change, I'm assuming that the API changed and rl.history() is no longer an iterator? If not, what's the rationale for this change? To be honest, I think I prefer it anyways, after having written more Rust since I first wrote shi, I have gotten far less interested in trying to concoct complex iterator chains 😅.

@LanHikari22 LanHikari22 Sep 27, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like using iterators, but yeah they can get complex.

They have removed iterator support for history now. You can find out in their source code here that they're still unsure how to implement iterator support back with their new changes.

@Utagai
Utagai merged commit 7286e74 into Utagai:master Sep 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade rustyline dependencies

2 participants