Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MultiProgress alignment handling and migrate from structopt => clap #516

Merged
merged 4 commits into from
Feb 6, 2023

Conversation

chris-laplante
Copy link
Collaborator

No description provided.

I'm not sure when this was broken, but it clearly doesn't work.
Discovered by trying:

cargo run --example=multi-tree-ext -- --bottom-alignment
@chris-laplante chris-laplante requested a review from djc February 2, 2023 20:57
@djc
Copy link
Member

djc commented Feb 2, 2023

Yeah, clap is at 1.64 MSRV right now. Maybe we should pin it? It's only a dev-dep for us, anyway.

@chris-laplante
Copy link
Collaborator Author

We could, though then we'd still have atty and maybe ansi_term :/. Right now our github actions is using 1.54. Maybe it's time to bump that up as well? (Though not necessarily all the way to 1.64)

On a side note, I may also open a PR to move off of action-rs/toolchain and onto https://github.com/dtolnay/rust-toolchain, since the former is unmaintained. A benefit is that we can use a toolchain expression like this: https://github.com/dtolnay/rust-toolchain#toolchain-expressions

@djc
Copy link
Member

djc commented Feb 2, 2023

I'm fine bumping the MSRV to 1.56, maybe 1.58?

Moving to dtolnay/rust-toolchain sounds good, but I'd rather make MSRV bumps an explicit choice.

This modernizes the code and also eliminates usage of some unmaintained
crates (ansi_term): https://github.com/console-rs/indicatif/actions/runs/4072643293/jobs/7015624350#step:4:8
@chris-laplante chris-laplante force-pushed the cpl/clap branch 3 times, most recently from 647aef3 to 8c115cd Compare February 3, 2023 20:08
@chris-laplante
Copy link
Collaborator Author

OK I think this is ready

@djc djc merged commit 1cbb573 into console-rs:main Feb 6, 2023
@djc
Copy link
Member

djc commented Feb 6, 2023

Nice!

@djc djc mentioned this pull request May 24, 2023
@chris-laplante chris-laplante deleted the cpl/clap branch September 27, 2023 16:45
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.

2 participants