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

parser: Switch from ansi_term to colored crate #100

Merged
merged 1 commit into from Mar 15, 2024

Conversation

zeenix
Copy link
Contributor

@zeenix zeenix commented Mar 13, 2024

ansi_term is no longer maintained and for the simple needs here, colored is much better suited anyway.

Fixes #99.

@behrmann
Copy link

Change looks reasonable to me and colored sees some 60k downloads a week, so it probably has a few users. Tested the build locally, tests ran fine and

cargo r --example validate -- ./ftl

with the example interfaction definition from varlink.org worked for me and had the correct colours (or at least the same compared to the main branch)

@haraldh
Copy link
Collaborator

haraldh commented Mar 13, 2024

Seems like I will have to increase the minimum version

error: package `colored v2.1.0` cannot be built because it requires rustc 1.70 or newer, while the currently active rustc version is 1.63.0

@coveralls
Copy link

coveralls commented Mar 13, 2024

Pull Request Test Coverage Report for Build 8286841734

Details

  • 0 of 51 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 57.205%

Changes Missing Coverage Covered Lines Changed/Added Lines %
varlink_parser/src/format.rs 0 51 0.0%
Totals Coverage Status
Change from base Build 8286312215: 0.07%
Covered Lines: 2890
Relevant Lines: 5052

💛 - Coveralls

@zeenix
Copy link
Contributor Author

zeenix commented Mar 13, 2024

Seems like I will have to increase the minimum version

Yeah, why not. Want me to provide a PR?

@haraldh
Copy link
Collaborator

haraldh commented Mar 13, 2024

Seems like I will have to increase the minimum version

Yeah, why not. Want me to provide a PR?

Yes please and thank you!

@zeenix
Copy link
Contributor Author

zeenix commented Mar 13, 2024

Yeah, why not. Want me to provide a PR?

Yes please and thank you!

Done.

`ansi_term` is no longer maintained and for the simple needs here,
`colored` is much better suited anyway.

Fixes varlink#99.

Signed-off-by: Zeeshan Ali Khan <zeenix@gmail.com>
@haraldh haraldh merged commit 04129b7 into varlink:master Mar 15, 2024
14 checks passed
@haraldh
Copy link
Collaborator

haraldh commented Mar 15, 2024

Many thanks!

@zeenix zeenix deleted the drop-ansi_term branch March 15, 2024 12:26
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.

RUSTSEC-2021-0139: ansi_term is Unmaintained
4 participants